Mojo function
from_ndbuffer_row_major
from_ndbuffer_row_major(buffer: NDBuffer[type, rank, shape, strides, alignment=alignment, address_space=address_space, exclusive=exclusive]) -> LayoutTensor[type, row_major[::Int](shape), row_major[::Int](shape).rank(), address_space=address_space]
This function takes the underlying buffer from NDBuffer without explicitly copying any data.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!