Skip to content

Instantly share code, notes, and snippets.

@nlpjoe
Last active September 3, 2018 03:00
Show Gist options
  • Select an option

  • Save nlpjoe/3392c5b9edd578ca88fcf2dfd80f9061 to your computer and use it in GitHub Desktop.

Select an option

Save nlpjoe/3392c5b9edd578ca88fcf2dfd80f9061 to your computer and use it in GitHub Desktop.
[mxboard运行命令] #linux
  1. 准备一个python脚本写入正态分布的数据
import mxnet as mx
from mxboard import SummaryWriter


with SummaryWriter(logdir='./logs') as sw:
    for i in range(10):
        # create a normal distribution with fixed mean and decreasing std
        data = mx.nd.normal(loc=0, scale=10.0/(i+1), shape=(10, 3, 8, 8))
        sw.add_histogram(tag='norml_dist', values=data, bins=200, global_step=i)
  1. 启动TensorBoard
tensorboard --logdir=./logs --host=0.0.0.0 --port=8888
  1. 本地PC机8888端口挂载远端服务器8888端口
ssh -L8888:localhsot:8888 jzzhou@192.168.126.122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment