Mojo module
managed_tensor_slice
Implements the ManagedTensorSlice
type - a view of a tensor that doesn't own the underlying data. This type is used to build custom graph operations.
Structs
-
ManagedTensorSlice
: A view of a tensor that does not own the underlying allocated pointer. When the object lifetime ends it does not free the underlying pointer. Conversely, if aManagedTensorSlice
is created, it will not extend the life of the underlying pointer.
Functions
-
foreach
: Apply the functionfunc
to each element of the tensor slice.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!