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

This commit is contained in:
Antonio Sánchez 2022-02-23 16:37:03 +00:00
parent cd80e04ab7
commit ae86a146b1

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); });
}