Supplement summary log

Signed-off-by: candanzg <zhangshucheng@huawei.com>
This commit is contained in:
candanzg 2020-04-18 20:32:00 +08:00
parent b418b18447
commit a91f82d79f
1 changed files with 7 additions and 3 deletions

View File

@ -46,10 +46,14 @@ def _cache_summary_tensor_data(summary):
class SummaryRecord:
"""
Summary log record.
SummaryRecord is used to record the summary value.
The API will create an event file in a given directory and add summaries and events to it.
Note:
The API will create an event file in a given directory and add summaries and events to it.
It writes the event log to a file by executing the record method. In addition,
if the SummaryRecord object is created and the summary operator is used in the network,
even if the record method is not called, the event in the cache will be written to the
file at the end of execution or when the summary is closed.
Args:
log_dir (str): The log_dir is a directory location to save the summary.