From ac2eca6b113cee17fc17b39dd2acdf861f8b139b Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 22 Jul 2020 00:35:51 +0000 Subject: Update tensor reduction test to avoid undefined division of bfloat16 by int. --- unsupported/test/cxx11_tensor_reduction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported') diff --git a/unsupported/test/cxx11_tensor_reduction.cpp b/unsupported/test/cxx11_tensor_reduction.cpp index f1ac83b1b..c46c4c91d 100644 --- a/unsupported/test/cxx11_tensor_reduction.cpp +++ b/unsupported/test/cxx11_tensor_reduction.cpp @@ -204,7 +204,7 @@ static void test_simple_reductions() { ++count; } } - VERIFY_IS_APPROX(result(i, j), sum / count); + VERIFY_IS_APPROX(result(i, j), sum / Scalar(count)); } } -- cgit v1.2.3