一种与张量流无关的张量板测井仪
tensorboard-eas的Python项目详细描述
一个小的日志记录器,允许您编写TensorBoard可读的日志,但是 不需要TensorFlow。
用法
您可以将记录器用作上下文管理器:
fromtensorboard_easyimportLoggerimportnumpyasnpwithLogger('/path/to/logs/folder/')aslog:log.log_scalar('my_scalar',100,step=1)log.log_image('my_images',np.random.rand(3,20,20),step=1)
或者可以显式关闭记录器:
log=Logger('/some/other/logs')log.log_text('my_text',"Let's throw in some text",0)log.log_text('my_text',[['Some','tensor'],['with','text!']],1)log.log_histogram('my_histogram',np.random.rand(500),step=0)log.close()
它支持标量、图像、文本和直方图。
您还可以创建函数,写入特定的标记并自动 增加步骤:
withLogger('/path/to/logs/folder/')aslog:write_loss=log.make_log_scalar('loss')foriinrange(1,100):write_loss(1/i)
安装
它可以通过pip安装:
pip install tensorboard-easy
tensorflow或tensorflow-tensorboard包不是 是必需的,但是您需要其中一个来可视化您的日志。