diff options
author | 2018-05-23 18:45:30 -0700 | |
---|---|---|
committer | 2018-05-23 18:48:08 -0700 | |
commit | 9fc9d5bfc460f736befa25f640a8010664945d61 (patch) | |
tree | 322cb66be1f323f6dfb439d0323843cf13f0a6a6 /tensorflow/core/util/stat_summarizer.h | |
parent | 3dfe81c60fac512703eadf224d0485e17fe7d55a (diff) |
Add back some public interface methods.
PiperOrigin-RevId: 197826136
Diffstat (limited to 'tensorflow/core/util/stat_summarizer.h')
-rw-r--r-- | tensorflow/core/util/stat_summarizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/core/util/stat_summarizer.h b/tensorflow/core/util/stat_summarizer.h index 39cd948525..173ed5cebc 100644 --- a/tensorflow/core/util/stat_summarizer.h +++ b/tensorflow/core/util/stat_summarizer.h @@ -95,6 +95,13 @@ class StatSummarizer { num_stats); } + int num_runs() const { return stats_calculator_->num_runs(); } + + // Returns stats of total microseconds spent by all nodes in each run. + const Stat<int64_t>& run_total_us() const { + return stats_calculator_->run_total_us(); + } + private: void Validate(const std::vector<TensorDescription>* outputs, const NodeExecStats& ns) const; |