Function deepviewrt_sys::nn_tensor_alloc
source · pub unsafe extern "C" fn nn_tensor_alloc(
tensor: *mut NNTensor,
type_: NNTensorType,
n_dims: i32,
shape: *const i32
) -> NNErrorExpand description
Allocates the internal memory for the tensor.
@public @memberof NNTensor @since 2.0