X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=arm_compute%2Fcore%2FNEON%2Fkernels%2Fconvolution%2Fcommon%2Ftensor_utils.hpp;h=0c234431b1faa1bb96eafb45a76fcba2ccc33006;hb=HEAD;hp=68a5c6a17839c76552f6a31477e956fa645a761e;hpb=67c8c91522e5be8156b77f57e63c0253535c902a;p=platform%2Fupstream%2Farmcl.git diff --git a/arm_compute/core/NEON/kernels/convolution/common/tensor_utils.hpp b/arm_compute/core/NEON/kernels/convolution/common/tensor_utils.hpp index 68a5c6a..0c23443 100644 --- a/arm_compute/core/NEON/kernels/convolution/common/tensor_utils.hpp +++ b/arm_compute/core/NEON/kernels/convolution/common/tensor_utils.hpp @@ -30,9 +30,12 @@ void PrintTensor(const Tensor4D& tensor); void PrintWeights(const Tensor4D& weights); // Test the equivalence of two tensors -bool CmpTensors(const Tensor4D& a, - const Tensor4D& b, - const float max_delta=0.0f); +// Counts the instances that |a - b|/|a| > max_err +bool CmpTensors( + const Tensor4D& a, + const Tensor4D& b, + const float max_err=0.0f +); // Fill the tensor with a test pattern void TestPattern(Tensor4D& tensor);