Skip to main content

Mojo function

managed_tensor_slice_to_ndbuffer

managed_tensor_slice_to_ndbuffer[spec: StaticTensorSpec[dtype, rank], //](tensor: ManagedTensorSlice[io_spec, static_spec=spec]) -> NDBuffer[dtype, rank, MutableAnyOrigin, spec.shape, spec.strides, address_space=spec.address_space]

Returns:

NDBuffer

Was this page helpful?