Modify test expression to avoid numerical differences (#2402).

(cherry picked from commit ae86a146b1ac9a49bf72e485254c08d237fd094a)
This commit is contained in:
Antonio Sánchez 2022-02-23 16:37:03 +00:00 committed by Antonio Sanchez
parent d1ed3fe5c9
commit 36be6747e0

View File

@ -244,7 +244,7 @@ static void test_eval_tensor_binary_with_unary_expr_block() {
rhs.setRandom();
VerifyBlockEvaluator<T, NumDims, Layout>(
(lhs.square() + rhs.square()).sqrt(),
(lhs.abs() + rhs.abs()).sqrt(),
[&dims]() { return RandomBlock<Layout>(dims, 1, 10); });
}