From 65b9ed5a83319830db02504d4c69e98bd07665b6 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Mon, 20 Aug 2018 16:07:12 -0700 Subject: [XLA] Switch to absl versions of the c_foo functions. PiperOrigin-RevId: 209502513 --- tensorflow/compiler/xla/service/hlo_computation.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc') 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 #include +#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; } -- cgit v1.2.3