Browse Source

!223 fix log levels too high

Merge pull request !223 from wenkai/wk1_0530_fix_log_level
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
954d075159
2 changed files with 3 additions and 4 deletions
  1. +2
    -2
      mindinsight/datavisual/data_transform/ms_data_loader.py
  2. +1
    -2
      mindinsight/datavisual/data_transform/reservoir.py

+ 2
- 2
mindinsight/datavisual/data_transform/ms_data_loader.py View File

@@ -405,8 +405,8 @@ class _SummaryParser(_Parser):
# Drop steps if original_buckets_count exceeds HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT # Drop steps if original_buckets_count exceeds HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT
# to avoid time-consuming re-sample process. # to avoid time-consuming re-sample process.
if tensor_event_value.original_buckets_count > HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT: if tensor_event_value.original_buckets_count > HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT:
logger.warning('original_buckets_count exceeds '
'HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT')
logger.info('original_buckets_count exceeds '
'HistogramContainer.MAX_ORIGINAL_BUCKETS_COUNT')
continue continue


tensor_event = TensorEvent(wall_time=event.wall_time, tensor_event = TensorEvent(wall_time=event.wall_time,


+ 1
- 2
mindinsight/datavisual/data_transform/reservoir.py View File

@@ -213,8 +213,7 @@ class HistogramReservoir(Reservoir):
visual_range.update(histogram.max, histogram.min) visual_range.update(histogram.max, histogram.min)


if visual_range.max == visual_range.min and not max_count: if visual_range.max == visual_range.min and not max_count:
logger.warning("Max equals to min, however, count is zero. Please check mindspore "
"does write max and min values to histogram summary file.")
logger.info("Max equals to min. Count is zero.")


bins = calc_histogram_bins(max_count) bins = calc_histogram_bins(max_count)




Loading…
Cancel
Save