torch_geometric.data.TensorAttr
- class TensorAttr(group_name: Optional[str] = FieldStatus.UNSET, attr_name: Optional[str] = FieldStatus.UNSET, index: Optional[Union[Tensor, ndarray, slice, int]] = FieldStatus.UNSET)[source]
Bases:
CastMixinDefines the attributes of a
FeatureStoretensor. It holds all the parameters necessary to uniquely identify a tensor from theFeatureStore.Note that the order of the attributes is important; this is the order in which attributes must be provided for indexing calls.
FeatureStoreimplementations can define a different ordering by overridingTensorAttr.__init__().- is_set(key: str) bool[source]
Whether an attribute is set in
TensorAttr.
- is_fully_specified() bool[source]
Whether the
TensorAttrhas no unset fields.
- fully_specify() TensorAttr[source]
Sets all
UNSETfields toNone.
- update(attr: TensorAttr) TensorAttr[source]
Updates an
TensorAttrwith set attributes from anotherTensorAttr.