Skip to main content
Log in

Mojo module

managed_tensor_slice

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 a ManagedTensorSlice is created, it will not extend the life of the underlying pointer.

Functions

  • foreach: Apply the function func to each element of the tensor slice.