diff options
author | 2018-03-12 17:13:09 -0700 | |
---|---|---|
committer | 2018-03-12 17:21:22 -0700 | |
commit | d9cbe36d1b5b661475d2a3d11384cd0a83493a67 (patch) | |
tree | 44d6b08d635bc3166b3afb1c84ec3b1637d24841 /tensorflow/compiler/xla/service/hlo_module_config.h | |
parent | 3b47d5f1e2048ad3721a946c054d7025d9f37a87 (diff) |
[XLA:Tools] Make hlo_runner understand --xla_hlo_profile.
PiperOrigin-RevId: 188803724
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_module_config.h')
-rw-r--r-- | tensorflow/compiler/xla/service/hlo_module_config.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_module_config.h b/tensorflow/compiler/xla/service/hlo_module_config.h index d3c1fae592..586a03d412 100644 --- a/tensorflow/compiler/xla/service/hlo_module_config.h +++ b/tensorflow/compiler/xla/service/hlo_module_config.h @@ -63,9 +63,10 @@ class HloModuleConfig { return &(*entry_computation_layout_); } - // Sets/returns whether to enable HLO-level profiling. - bool hlo_profiling_enabled() const { return hlo_profiling_enabled_; } - void enable_hlo_profiling(bool enabled) { hlo_profiling_enabled_ = enabled; } + // Returns whether to enable HLO-level profiling. + bool hlo_profiling_enabled() const { + return debug_options_.xla_hlo_profile(); + } // Sets/returns whether this is a "host module". Host modules are used to // record the data- and control-flow dependencies of host side computation @@ -110,9 +111,6 @@ class HloModuleConfig { tensorflow::gtl::optional<ComputationLayout> entry_computation_layout_; - // Whether to enable HLO-level profiling. - bool hlo_profiling_enabled_ = false; - // Whether this is a 'host module'. bool is_host_module_ = false; |