Browse Source

!5389 Copy the default specified data when collect_specified data is None

Merge pull request !5389 from ougongchang/fix_summarycollector
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
5b738794d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/train/callback/_summary_collector.py

+ 1
- 1
mindspore/train/callback/_summary_collector.py View File

@@ -259,7 +259,7 @@ class SummaryCollector(Callback):
"""Check specified data type and value."""
if specified_data is None:
if action:
return self._DEFAULT_SPECIFIED_DATA
return dict(self._DEFAULT_SPECIFIED_DATA)
return dict()

check_value_type('collect_specified_data', specified_data, [dict, type(None)])


Loading…
Cancel
Save