pub unsafe extern "C" fn nn_tensor_reshape(
tensor: *mut NNTensor,
n_dims: i32,
shape: *const i32,
) -> NNErrorExpand description
Reshapes the given tensor to the provided new shape.
@param tensor the tensor object used in the operation @param n_dims the number of dimensions which the tensor will contain after the operation completes successfully. It must also match the number of elements in @p shape. @param shape the new shape for the tensor. The array must be at least @p n_dims elements in size.
@return @ref NN_SUCCESS if the reshape is able to be performed @return @ref NN_ERROR_SHAPE_MISMATCH if the new shape cannot be represented given the previous shape of the tensor.
@public @memberof NNTensor @since 2.0