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

Merge pull request !5389 from ougongchang/fix_summarycollector
pull/5389/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 5b738794d2

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

Loading…
Cancel
Save