markdown 如何导出网络以在tensorboard中使用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 如何导出网络以在tensorboard中使用相关的知识,希望对你有一定的参考价值。

## Generate the graph definition
Once the graph is defined and the session initialized, the graph is exported with:

```[python]
writer = tf.summary.FileWriter("output", sess.graph)
```

where ```sess``` is the session object and ```"output"``` is the output folder where the definition will be stored.

## Show the graph 
Once the definition is stored in a file, the graph can be rendered with the command: 

```
python -m tensorboard.main --logdir="[path to the folder with the graph definition]"
```

This command runs a web server and using the web browser can be seen the generated graph.

以上是关于markdown 如何导出网络以在tensorboard中使用的主要内容,如果未能解决你的问题,请参考以下文章