简体   繁体   English

从tensorflow摘要中导出图prototxt

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM