diff options
Diffstat (limited to 'tensorflow/tools/tfprof/internal/tfprof_show_multi.h')
-rw-r--r-- | tensorflow/tools/tfprof/internal/tfprof_show_multi.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tensorflow/tools/tfprof/internal/tfprof_show_multi.h b/tensorflow/tools/tfprof/internal/tfprof_show_multi.h index ce309816a9..e6faf1231d 100644 --- a/tensorflow/tools/tfprof/internal/tfprof_show_multi.h +++ b/tensorflow/tools/tfprof/internal/tfprof_show_multi.h @@ -55,23 +55,21 @@ class TFMultiShow { std::unique_ptr<TFProfTensor>* tensor); // Overridden by subclass if extra requirements need to be met. - virtual bool ShouldShowIfExtra(const ShowMultiNode* node, const Options& opts, - int depth) const { + virtual bool ShouldShowIfExtra(ShowMultiNode* node, const Options& opts, + int depth) { return true; } - bool ShouldShow(const ShowMultiNode* node, const Options& opts, - int depth) const; + bool ShouldShow(ShowMultiNode* node, const Options& opts, int depth); - bool ShouldTrim(const ShowMultiNode* node, - const std::vector<string>& regexes) const; + bool ShouldTrim(ShowMultiNode* node, const std::vector<string>& regexes); bool ReAccount(ShowMultiNode* node, const Options& opts); - string FormatLegend(const Options& opts) const; - string FormatInputShapes(const TFMultiGraphNodeProto& proto) const; + string FormatLegend(const Options& opts); + string FormatInputShapes(const TFMultiGraphNodeProto& proto); std::vector<string> FormatTimes(const ShowMultiNode* node, - const Options& opts) const; + const Options& opts); template <typename T> std::vector<T*> SortNodes(const std::vector<T*>& nodes, const Options& opts) { |