Mojo function
ndbuffer_view_from_tensor
ndbuffer_view_from_tensor[type: DType, rank: Int](tensor: Tensor[type, rank]) -> NDBuffer[$0, $1]
ndbuffer_view_from_tensor[type: DType, in_rank: Int, out_rank: Int](tensor: Tensor[type, in_rank], offset: Int, out_shape: IndexList[out_rank]) -> NDBuffer[$0, $2]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!