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]) -> 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.