Skip to main content
Log in

Mojo function

from_ndbuffer_row_major

from_ndbuffer_row_major(buffer: NDBuffer[type, rank, shape, strides, alignment=alignment, address_space=address_space, exclusive=exclusive, origin=origin]) -> LayoutTensor[type, row_major[::Int](shape), origin=origin, address_space=address_space]

This function takes the underlying buffer from NDBuffer without explicitly copying any data.