Function nn_tensor_compare

Source
pub unsafe extern "C" fn nn_tensor_compare(
    left: *mut NNTensor,
    right: *mut NNTensor,
    tolerance: f64,
) -> c_int
Expand description

Element-wise comparison of two tensors within a given tolerance, returning total number of errors relative to the left tensor. If the two tensors are incompatible the volume of the left tensor is returned (all elements invalid).

@public @memberof NNTensor @since 2.0 @deprecated 2.3