问题:
TensorboardX必须
writer.close()
才能把缓存中保存的数据写到目标events文件中,一旦训练中断没有close,则你的保存目录中不会有相应的数据。
解决办法:很简单,加个
try:
writer.close()
except BaseException:
writer.close()
TensorboardX必须
writer.close()
才能把缓存中保存的数据写到目标events文件中,一旦训练中断没有close,则你的保存目录中不会有相应的数据。
try:
writer.close()
except BaseException:
writer.close()