Browse Source

Copy the default specified data when collect_specified data is None

tags/v1.0.0
ougongchang 5 years ago
parent
commit
458c69a22c
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