aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tests/randomized_tests.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/tests/randomized_tests.cc')
-rw-r--r--tensorflow/compiler/tests/randomized_tests.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/tests/randomized_tests.cc b/tensorflow/compiler/tests/randomized_tests.cc
index 7a96f4c25c..dc119fb0f8 100644
--- a/tensorflow/compiler/tests/randomized_tests.cc
+++ b/tensorflow/compiler/tests/randomized_tests.cc
@@ -1820,7 +1820,7 @@ TEST_F(OpTest, Diag) {
do {
dims = RandomDims(1);
size = TensorShape(dims).num_elements();
- } while (size * size < tf_xla_max_tensor_size);
+ } while (size * size > tf_xla_max_tensor_size);
return ExpectTfAndXlaOutputsAreClose(
OpTestBuilder("Diag").RandomInput(type, dims).Attr("T", type));
});