你好,在 cats_vs_dogs 图像分类训练完成后,我使用tf.saved_model.save(model, “save/1”)保存模型,再用model = tf.saved_model.load(“save/1”)导入模型,进行准确率计算时,显示
Cause: ‘arguments’ object has no attribute ‘posonlyargs’
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
Traceback (most recent call last):
File “test12.py”, line 85, in
print(mymodel.metrics_names)
AttributeError: ‘_UserObject’ object has no attribute ‘metrics_names’
请问这是什么原因