有没有办法直接分析和操作张量板"events.*"日志文件?



每个人。Tensorboard是一个很好的可视化学习过程的工具,但它给我带来了一些不便。出于某种原因,有时我想删除部分学习曲线(比如在第X步后删除标量(。然而,所有标量都放在一个"events.*"文件中,而且据我所知,Tensorboard只提供高级api(只"添加",没有"删除"(。有人对此有什么想法吗?谢谢

您可以使用print_tensors_in_checkpoint_file()、查看检查点文件的内容

from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file
print_tensors_in_checkpoint_file(file_name="<your_path_here>/model.ckpt-<whatever_step>", tensor_name='', all_tensors=True)

最新更新