import tensorflow as tf
import os
model_dir = './'
model_name = '*.pb'
#这里填文件名
# model_name = 'frozen_graph.pb'
def create_graph():
with tf.gfile.FastGFile(os.path.join
查看tensorflow的pb文件里每一层的结构名
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import tensorflow as tf
import os
model_dir = './'
model_name = '*.pb'
#这里填文件名
# model_name = 'frozen_graph.pb'
def create_graph():
with tf.gfile.FastGFile(os.path.join