aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-07-22 00:35:51 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-07-22 00:35:51 +0000
commitac2eca6b113cee17fc17b39dd2acdf861f8b139b (patch)
treeaf0fa22a3b37bb70fd1994ef04ee59d4c35f3ff1 /unsupported/test
parent0aeaf5f451443a314ec4915af607520fd9b99866 (diff)
Update tensor reduction test to avoid undefined division of bfloat16 by int.
Diffstat (limited to 'unsupported/test')
-rw-r--r--unsupported/test/cxx11_tensor_reduction.cpp2
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));
}
}