pub unsafe extern "C" fn nn_tensor_copy_buffer(
tensor: *mut NNTensor,
buffer: *const c_void,
bufsize: usize,
) -> NNErrorExpand 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