[英]export graph prototxt from tensorflow summary
When using tensorflow, the graph is logged in the summary file, which I "abuse" to keep track of the architecture modifications. 当使用tensorflow时,图形记录在摘要文件中,我“滥用”该文件以跟踪体系结构修改。 But that means every time I need to use tensorboard to visualise and view the graph.
但这意味着每次我需要使用张量板来可视化和查看图形时。
Is there a way to write out such a graph prototxt in code or export this prototxt from summary file from tensorboard? 有没有办法在代码中写出这样的图形原型或从tensorboard的摘要文件中导出该原型?
Thanks for your answer! 感谢您的回答!
The graph is available by calling tf.get_default_graph
. 通过调用
tf.get_default_graph
可以使用该图。 You can get it in GraphDef
format by doing graph.as_graph_def()
. 您可以通过执行
graph.as_graph_def()
以GraphDef
格式获取它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.