diff options
author | Benjamin Kramer <kramerb@google.com> | 2018-08-30 11:42:02 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-30 11:45:48 -0700 |
commit | 4d0d8c35f06c31706aca55aac9d68e2bd731082b (patch) | |
tree | 6ac67221cb1651efab9c7349edd121b7c09e9e54 /tensorflow/compiler/xla/shape_util.cc | |
parent | 8b2f3cbdbf38776ec03dff4397c4890857bf5806 (diff) |
[XLA] xla::ArrayContains -> absl::c_linear_search
PiperOrigin-RevId: 210950150
Diffstat (limited to 'tensorflow/compiler/xla/shape_util.cc')
-rw-r--r-- | tensorflow/compiler/xla/shape_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/shape_util.cc b/tensorflow/compiler/xla/shape_util.cc index 5477a78a9a..763fd3525b 100644 --- a/tensorflow/compiler/xla/shape_util.cc +++ b/tensorflow/compiler/xla/shape_util.cc @@ -1035,7 +1035,7 @@ bool ShapeUtil::IsLeafIndex(const Shape& shape, const ShapeIndex& index) { /* static */ bool ShapeUtil::HasDegenerateDimensions(const Shape& shape) { CHECK(ShapeUtil::IsArray(shape)); - return ArrayContains<int64>(AsInt64Slice(shape.dimensions()), 1); + return absl::c_linear_search(shape.dimensions(), 1); } namespace { |