Add back some public interface methods.
authorShashi Shekhar <shashishekhar@google.com>
Thu, 24 May 2018 01:45:30 +0000 (18:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 24 May 2018 01:48:08 +0000 (18:48 -0700)
PiperOrigin-RevId: 197826136

tensorflow/core/util/stat_summarizer.h

index 39cd948..173ed5c 100644 (file)
@@ -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;