!660 Fix bug: summary graph and record misjudgment

Merge pull request !660 from candanzg/summary_record_bug
pull/660/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 5633f6c68b

@ -158,6 +158,9 @@ class SummaryRecord:
package_graph_event(graph_proto).SerializeToString())
self.event_writer.flush()
self.has_graph = True
data = _summary_tensor_cache.get("SummaryRecord")
if data is None:
return True
data = _summary_tensor_cache.get("SummaryRecord")
if data is None:

Loading…
Cancel
Save