From d96e073e77929006c519cd3082461d9757865dd7 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Thu, 4 Oct 2018 13:42:48 -0700 Subject: [TF:XLA] Fix inverted condition in randomized test. PiperOrigin-RevId: 215795518 --- tensorflow/compiler/tests/randomized_tests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/compiler') 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)); }); -- cgit v1.2.3