Function deepviewrt_sys::nn_tensor_offsetv
source · pub unsafe extern "C" fn nn_tensor_offsetv(
tensor: *const NNTensor,
n_dims: i32
...
) -> c_intExpand description
Returns the offset of a given tensor using variable length dimensions. This works the same as @ref nn_tensor_offset() but uses variable arguments. The user must provide @p n_dims number of parameters after the @p n_dims parameter.
@param tensor the tensor object used in the operation @param n_dims the number of dimensions to use when calculating the index @param … variable number of shape elements which must be of type int32_t
@return the element index into the tensor based on the muliple dimenional indices provided.
@public @memberof NNTensor @since 2.0