diff options
author | 2016-12-28 19:17:14 -0800 | |
---|---|---|
committer | 2016-12-28 19:28:01 -0800 | |
commit | d322c0533d5ac10d48d305e0dcb1b3649283e7f6 (patch) | |
tree | 85cd85cf16962bf5ba9c47be2052ee2f800ede45 /tensorflow/core/util/stat_summarizer.cc | |
parent | cc0de74ff0fbaee205826f7cef23e91892fb5db2 (diff) |
Add missing std::fixed in StatSummarizer to ensure integers get sorted appropriately.
Change: 143149150
Diffstat (limited to 'tensorflow/core/util/stat_summarizer.cc')
-rw-r--r-- | tensorflow/core/util/stat_summarizer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/util/stat_summarizer.cc b/tensorflow/core/util/stat_summarizer.cc index ebe7bebde7..1c2ca9057e 100644 --- a/tensorflow/core/util/stat_summarizer.cc +++ b/tensorflow/core/util/stat_summarizer.cc @@ -200,7 +200,8 @@ void StatSummarizer::OrderNodesByMetric( for (const auto& det : details_) { const Detail* detail = &(det.second); std::stringstream stream; - stream << std::setw(20) << std::right << std::setprecision(10); + stream << std::setw(20) << std::right << std::setprecision(10) + << std::fixed; int definition_index = 0; auto it = std::find(nodes_in_def_order_.begin(), nodes_in_def_order_.end(), |