Skip to main content

Mojo struct

RuntimeTensorSpec

struct RuntimeTensorSpec[dtype: DType, rank: Int]

Fields

  • shape (IndexList[rank]):

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

Methods

__getitem__

__getitem__(self, idx: Int) -> Int

Returns:

Int

bytecount

bytecount(self) -> Int

Gets the total byte count.

Returns:

Int: The total byte count.

Was this page helpful?