TensorAttr
dataclass
¶
TensorAttr(
group_name: Optional[str] = None,
attr_name: Optional[str] = None,
index: IndexType = None,
)
Identifies an array of a FeatureStore.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
group_name
|
Optional[str]
|
Group of the array, e.g. a node type. |
None
|
attr_name
|
Optional[str]
|
Name of the array, e.g. |
None
|
index
|
IndexType
|
Rows to read or write: |
None
|
Methods:
| Name | Description |
|---|---|
cast |
A |
Attributes:
| Name | Type | Description |
|---|---|---|
key |
tuple[Optional[str], Optional[str]]
|
|
key
property
¶
(group_name, attr_name), the key of the array.
cast
classmethod
¶
cast(*args: Any, **kwargs: Any) -> TensorAttr
A TensorAttr from another one, a tuple
(group_name, attr_name[, index]) or keyword arguments.
Source code in mlx_graphs/data/feature_store.py
from mlx_graphs.data import TensorAttr · mlx_graphs/data/feature_store.py