W0104 19:15:46.613441 Thread-3 core_plugin.py:159] Unable to get first event timestamp for run train
W0104 19:15:50.493149 Thread-3 core_plugin.py:159] Unable to get first event timestamp for run train
W0104 19:15:50.616818 Thread-2 core_plugin.py:159] Unable to get first event timestamp for run train
W0104 19:16:20.625455 Thread-1 core_plugin.py:159] Unable to get first event timestamp for run train
tensorboardX报错,主要原因:日志在缓存(内存)中没有加载到磁盘。
class SummaryWriter(object):
def __init__(self, logdir=None, comment='', purge_step=None, max_queue=10,
flush_secs=120, filename_suffix='', write_to_disk=True, log_dir=None, **kwargs):
默认的刷新时间 flush_secs 为 120 秒。
方法1:
writer= SummaryWriter(log_dir=log_dir, flush_secs=3)
方法2:
writer.add_scalar("loss", loss, global_step=global_step)
writer.flush()