Skip to main content

tensor_get

Function tensor_get 

Source
pub unsafe fn tensor_get(tensor: &GgmlTensor, data: &mut [u8])
Expand description

Get tensor data into a byte slice.

ยงSafety

The tensor must be allocated and the buffer must be large enough.