aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/util/stat_summarizer.h
diff options
context:
space:
mode:
authorGravatar Shashi Shekhar <shashishekhar@google.com>2018-05-23 18:45:30 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-05-23 18:48:08 -0700
commit9fc9d5bfc460f736befa25f640a8010664945d61 (patch)
tree322cb66be1f323f6dfb439d0323843cf13f0a6a6 /tensorflow/core/util/stat_summarizer.h
parent3dfe81c60fac512703eadf224d0485e17fe7d55a (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.h7
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;