Simple usage example
dmitriy-serdyuk opened this issue · comments
Dmitriy Serdyuk commented
Hi, thanks for a very nice work!
After looking for some time at your project I realized that it is completely independent from either Tensorflow or Mxnet, one can use it with Theano (like in my case), Pytorch or even standalone python scripts.
I propose to add an example which demonstrates how to use it in the simplest way, something like:
import tensorboard
from tensorboard import summary
train_writer = tensorboard.FileWriter('./log/train')
test_writer = tensorboard.FileWriter('./log/test')
for i in range(10):
train_writer.add_summary(summary.scalar('accuaracy', i ** 2), global_step=i)
test_writer.add_summary(summary.scalar('accuaracy', (i ** 2) * .9), global_step=i)
Let me know what you think, I can create a PR.
Zihao Zheng commented
Zihao Zheng commented
Just re-open if you need, close for now.