For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
NoView
struct NoView
Stands in for a mask's operand views before the operands are known.
A mask with operands defaults its view parameters to NoView, so a caller
can name it without them; make returns the instantiation with the real
views. It is never read.
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
LoadAccess,
Loadable,
Movable,
RegisterPassable,
Tensor,
TrivialRegisterPassable
comptime members
dtype
comptime dtype = DType.uint8
rank
comptime rank = Int(1)
Methods
shape
def shape(self) -> Coord[ComptimeInt[Int(1)]]
Returns a one-element shape.
Returns:
Coord[ComptimeInt[Int(1)]]: The shape.
load
def load[width: Int, element_alignment: Int = Int(1)](self, idx: Coord[*idx.element_types]) -> SIMD[.uint8, width]
Returns zeros.
Parameters:
- width (
Int): Number of elements to load. - element_alignment (
Int): Assumed alignment of the load in elements.
Args:
- idx (
Coord[*idx.element_types]): The element coordinate to load from.
Returns:
SIMD[.uint8, width]: Zeros.