input/output is not in graph tf.layers.conv2d在name命名时会自动在其后添加Conv2D
生活随笔
收集整理的這篇文章主要介紹了
input/output is not in graph tf.layers.conv2d在name命名时会自动在其后添加Conv2D
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
tf.layers.conv2d()在用name命名時(shí)會(huì)自動(dòng)在其后添加Conv2D
下面是編寫的一個(gè)dncnn網(wǎng)絡(luò)模型,分別給第一層block1和第17層block17命名為input和output
在輸出pb模型時(shí),導(dǎo)出輸入輸出節(jié)點(diǎn)時(shí)需要在其后加上/Conv2D
from tensorflow.python.framework.graph_util import convert_variables_to_constants constant_graph = convert_variables_to_constants(self.sess, self.sess.graph_def,["block1/input/Conv2D", "block17/output/Conv2D"])總結(jié)
以上是生活随笔為你收集整理的input/output is not in graph tf.layers.conv2d在name命名时会自动在其后添加Conv2D的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 获取今天是星期几的四种写法
- 下一篇: 小程序跳转到其他小程序