diff options
author | 2018-08-27 20:36:26 -0700 | |
---|---|---|
committer | 2018-08-27 20:44:17 -0700 | |
commit | 52ed16ca14cd2db0cba1a33ff6f2d70f56a1bb0e (patch) | |
tree | 0b2295e4e87e5f1b7a861eba34a2446267c3f043 /tensorflow/compiler/xla/service/hlo_module_group_metadata.cc | |
parent | 7e3683826049bb59bc1e2ec6603613dfb5772ac5 (diff) |
[TF:XLA] Run the points-to analysis for a module group.
PiperOrigin-RevId: 210483654
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_module_group_metadata.cc')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_module_group_metadata.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_module_group_metadata.cc b/tensorflow/compiler/xla/service/hlo_module_group_metadata.cc index a9c5d48983..9c01862a4b 100644 --- a/tensorflow/compiler/xla/service/hlo_module_group_metadata.cc +++ b/tensorflow/compiler/xla/service/hlo_module_group_metadata.cc @@ -22,6 +22,7 @@ limitations under the License. #include "absl/memory/memory.h" #include "tensorflow/compiler/xla/service/hlo_casting_utils.h" #include "tensorflow/compiler/xla/service/hlo_instructions.h" +#include "tensorflow/compiler/xla/service/tuple_points_to_analysis.h" #include "tensorflow/compiler/xla/shape_util.h" #include "tensorflow/compiler/xla/status_macros.h" #include "tensorflow/compiler/xla/util.h" @@ -131,6 +132,14 @@ Status HloModuleGroupMetadata::Build() { if (VLOG_IS_ON(4)) { DumpCollectedStats(); } + + for (HloModule* module : modules_) { + TF_ASSIGN_OR_RETURN( + std::unique_ptr<TuplePointsToAnalysis> points_to_analysis, + TuplePointsToAnalysis::Run(module)); + points_to_analyses_[module] = std::move(points_to_analysis); + } + return Status::OK(); } |