diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-22 00:35:51 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-07-22 00:35:51 +0000 |
commit | ac2eca6b113cee17fc17b39dd2acdf861f8b139b (patch) | |
tree | af0fa22a3b37bb70fd1994ef04ee59d4c35f3ff1 /unsupported | |
parent | 0aeaf5f451443a314ec4915af607520fd9b99866 (diff) |
Update tensor reduction test to avoid undefined division of bfloat16 by int.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/test/cxx11_tensor_reduction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } |