nn_tensor_view

Function nn_tensor_view 

Source
pub unsafe extern "C" fn nn_tensor_view(
    tensor: *mut NNTensor,
    type_: NNTensorType,
    n_dims: i32,
    shape: *const i32,
    parent: *mut NNTensor,
    offset: i32,
) -> NNError
Expand description

Maps the tensor using the memory from the parent tensor.

@param tensor Pointer to the tensor object where the view will be stored. @param type The data type that the tensor is storing. @param n_dims The number of dimensions in the provided tensor. @param shape The shape of the given tensor. @param parent Pointer to the tensor object that holds the original tensor. @param offset TO BE DETERMINED.

@public @memberof NNTensor @since 2.0