Mojo struct
RuntimeTensorSpec
@register_passable(trivial)
struct RuntimeTensorSpec[type: DType, rank: Int]
Fields
- shape (
IndexList[rank]
):
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
UnknownDestructibility
Methods
__getitem__
__getitem__(self, idx: Int) -> Int
bytecount
bytecount(self) -> Int
Gets the total byte count.
Returns:
The total byte count.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!