From 458c69a22cdbb3e9a0a8ca90a59b41134d685948 Mon Sep 17 00:00:00 2001 From: ougongchang Date: Fri, 28 Aug 2020 09:56:13 +0800 Subject: [PATCH] Copy the default specified data when collect_specified data is None --- mindspore/train/callback/_summary_collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/train/callback/_summary_collector.py b/mindspore/train/callback/_summary_collector.py index 0d0cad7530..34e715c76b 100644 --- a/mindspore/train/callback/_summary_collector.py +++ b/mindspore/train/callback/_summary_collector.py @@ -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)])