SingleCompGCNRepresentation
- class SingleCompGCNRepresentation(combined: CombinedCompGCNRepresentations, position: int = 0, shape: int | Sequence[int] | None = None, **kwargs)[source]
基础类:
Representation组合表示模块的封装器。
初始化模块。
- Parameters:
combined (CombinedCompGCNRepresentations) – 组合的表示。
position (int) – 位置,0表示实体,1表示关系。
shape (OneOrSequence[int] | None) – 单个表示的形状。
kwargs – 传递给 super.__init__ 的额外基于关键字的参数
- Raises:
ValueError – 如果为位置提供了无效的值