Commit f2b0f1be authored by Yuxin Wu's avatar Yuxin Wu

fix bug

parent f573d8b6
...@@ -132,7 +132,7 @@ class Monitors(Callback): ...@@ -132,7 +132,7 @@ class Monitors(Callback):
suffix = '-summary' # tensorflow#6150, tensorboard#59 suffix = '-summary' # tensorflow#6150, tensorboard#59
if val.tag.endswith(suffix): if val.tag.endswith(suffix):
val.tag = val.tag[:-len(suffix)] val.tag = val.tag[:-len(suffix)]
self._dispatch(lambda m: m.put_scalar(val.tag, val.simple_value)) self._dispatch(lambda m: m.process_scalar(val.tag, val.simple_value))
self._dispatch(lambda m: m.process_summary(summary)) self._dispatch(lambda m: m.process_summary(summary))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment