diff options
author | Justin Lebar <jlebar@google.com> | 2018-08-17 22:01:53 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-17 22:05:27 -0700 |
commit | 4a41f50648929197954d892559587cb76458d306 (patch) | |
tree | 03e7be68100a695659878a3dd523bda9d230d37f /tensorflow/compiler/xla/service/hlo_computation.cc | |
parent | b7c242475c3d6e38ae864ae06f937c1b29c0a494 (diff) |
[XLA] Switch to absl versions of the c_foo functions.
PiperOrigin-RevId: 209247783
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_computation.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.cc b/tensorflow/compiler/xla/service/hlo_computation.cc index 441288da1a..db853360f1 100644 --- a/tensorflow/compiler/xla/service/hlo_computation.cc +++ b/tensorflow/compiler/xla/service/hlo_computation.cc @@ -23,6 +23,7 @@ limitations under the License. #include <set> #include <sstream> +#include "absl/algorithm/container.h" #include "tensorflow/compiler/xla/layout_util.h" #include "tensorflow/compiler/xla/map_util.h" #include "tensorflow/compiler/xla/ptr_util.h" @@ -901,9 +902,9 @@ void HloComputation::UniquifyName(NameUniquer* name_uniquer) { HloInstruction* HloComputation::GetInstructionWithName( tensorflow::StringPiece name) { auto instructions_in_computation = instructions(); - auto it = c_find_if(instructions_in_computation, [&](HloInstruction* instr) { - return instr->name() == name; - }); + auto it = absl::c_find_if( + instructions_in_computation, + [&](HloInstruction* instr) { return instr->name() == name; }); return it == instructions_in_computation.end() ? nullptr : *it; } |