diff options
author | Peter Hawkins <phawkins@google.com> | 2018-10-04 13:42:48 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-04 13:49:21 -0700 |
commit | d96e073e77929006c519cd3082461d9757865dd7 (patch) | |
tree | 40363c254e2cd07391d897acaef18322a03fb155 /tensorflow/compiler | |
parent | 9f2d1e2cf6be4a17b6318b429447a71d9d48af32 (diff) |
[TF:XLA] Fix inverted condition in randomized test.
PiperOrigin-RevId: 215795518
Diffstat (limited to 'tensorflow/compiler')
-rw-r--r-- | tensorflow/compiler/tests/randomized_tests.cc | 2 |
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)); }); |