Mojo struct
StaticTensorSpec
Fieldsβ
- βshape (
StaticIntTuple[rank]
):
Implemented traitsβ
AnyType
,
Copyable
,
Movable
Methodsβ
__init__
β
__init__(inout self: Self, spec: TensorSpec)
Construct from TensorSpec.
Args:
- βspec (
TensorSpec
): TensorSpec of given rank and type.
__getitem__
β
__getitem__(self: Self, idx: Int) -> Int
get_tensor_spec
β
get_tensor_spec(self: Self) -> TensorSpec
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?