Display image of graph in TensorFlow?

前端 未结 2 879
借酒劲吻你
借酒劲吻你 2020-12-29 05:38

I wrote a simple script to calculate the golden ratio from 1,2,5. Is there a way to actually produce a visual through tensorflow (possibly with the aid of matplotlib<

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 05:56

    You can get an image of the graph using Tensorboard. You need to edit your code to output the graph, and then you can launch tensorboard and see it. See, in particular, TensorBoard: Graph Visualization. You create a SummaryWriter and include the sess.graph_def in it. The graph def will be output to the log directory.

提交回复
热议问题