nn_tensor_copy_buffer

Function nn_tensor_copy_buffer 

Source
pub unsafe extern "C" fn nn_tensor_copy_buffer(
    tensor: *mut NNTensor,
    buffer: *const c_void,
    bufsize: usize,
) -> NNError
Expand description

Loads a tensor with data from a user buffer User has to maintain the buffer and ensure compatibility with NHWC tensor Function will return error if there is a size mismatch i.e (bufsize != nn_tensor_size(tensor)) or tensor is invalid

@public @memberof NNTensor @since 2.4