diff --git a/include/aidge/utils/TensorUtils.hpp b/include/aidge/utils/TensorUtils.hpp index f2d3eae438e0b41ec9c3b5b36bca721be0c161f4..e4da1e12eb675bc21ea72fd483474883cb8b9a46 100644 --- a/include/aidge/utils/TensorUtils.hpp +++ b/include/aidge/utils/TensorUtils.hpp @@ -33,7 +33,7 @@ namespace Aidge { * @return true if both tensor are approximately equal and have the datatype, shape. Else return false */ template <typename T1, typename T2 = T1> -bool approxEq(Aidge::Tensor t1, Aidge::Tensor t2, float relative, float absolute){ +bool approxEq(const Tensor& t1, const Tensor& t2, float relative, float absolute){ assert(t1.dataType() == NativeType<T1>::type); assert(t2.dataType() == NativeType<T2>::type); assert(relative >= 0);