Tensorflow 无法将pb模型加载到keras模型中
我有一个预训练的pb模型,我正在尝试将其加载为keras模型,以便运行类似model.summary()的东西,但加载pb模型后的类型是“自动跟踪”对象,因为它没有属性“summary”。这是我正在使用的代码Tensorflow 无法将pb模型加载到keras模型中,tensorflow,keras,Tensorflow,Keras,我有一个预训练的pb模型,我正在尝试将其加载为keras模型,以便运行类似model.summary()的东西,但加载pb模型后的类型是“自动跟踪”对象,因为它没有属性“summary”。这是我正在使用的代码 model = tf.saved_model.load('my_model/') # folder that contains the pb model model.summary() 下面是错误消息: "AttributeError: 'AutoTrackable' obje
model = tf.saved_model.load('my_model/') # folder that contains the pb model
model.summary()
下面是错误消息:
"AttributeError: 'AutoTrackable' object has no attribute 'summary'"
有人能帮忙吗?问题是否与您的问题有关?问题是否与您的问题有关?