From aebe8cc6f49188332529e3c34350ed6eb009528e Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 5 Sep 2017 15:27:28 -0700 Subject: [PATCH] Call HloComputation.Accept instead of HloInstruction.Accept to get all instructions profiled. RELNOTES: n/a PiperOrigin-RevId: 167640259 --- tensorflow/compiler/xla/service/cpu/cpu_compiler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/compiler/xla/service/cpu/cpu_compiler.cc b/tensorflow/compiler/xla/service/cpu/cpu_compiler.cc index 839fe484888..f0420450f5d 100644 --- a/tensorflow/compiler/xla/service/cpu/cpu_compiler.cc +++ b/tensorflow/compiler/xla/service/cpu/cpu_compiler.cc @@ -198,8 +198,8 @@ class CollectProfileCandidates : public DfsHloVisitorWithDefault { std::unordered_map hlo_to_profile_idx; CollectProfileCandidates profile_candidates_for_computation( &hlo_to_profile_idx); - TF_RETURN_IF_ERROR(computation->root_instruction()->Accept( - &profile_candidates_for_computation)); + TF_RETURN_IF_ERROR( + computation->Accept(&profile_candidates_for_computation)); return hlo_to_profile_idx; }