diff --git a/docs/api/api_python/train/mindspore.train.summary.SummaryRecord.rst b/docs/api/api_python/train/mindspore.train.summary.SummaryRecord.rst index 95922157ad4..ee6736a22e8 100644 --- a/docs/api/api_python/train/mindspore.train.summary.SummaryRecord.rst +++ b/docs/api/api_python/train/mindspore.train.summary.SummaryRecord.rst @@ -73,7 +73,7 @@ .. py:method:: flush() - 刷新缓冲区,将缓冲区中的数据立刻写入文件。 + 刷新缓冲区,将缓冲区中的数据写入磁盘。 调用该函数以确保所有挂起事件都已写入到磁盘。 diff --git a/mindspore/python/mindspore/train/summary/summary_record.py b/mindspore/python/mindspore/train/summary/summary_record.py index fbb09f24dfd..a9d1a672348 100644 --- a/mindspore/python/mindspore/train/summary/summary_record.py +++ b/mindspore/python/mindspore/train/summary/summary_record.py @@ -429,7 +429,7 @@ class SummaryRecord: def flush(self): """ - Flush the buffer and write files to disk. + Flush the buffer and write buffer data to disk. Call it to make sure that all pending events have been written to disk.