运行报错之后找到
import tensorflow as tf
如果用到,在用到model的前面加上代码
tf.compat.v1.disable_eager_execution()
重新运行解决错误
ValueError:Calling ‘Model.predict‘ in graph mode / 请求上传接口出现异常
阅读 25
2022-04-14
运行报错之后找到
import tensorflow as tf
如果用到,在用到model的前面加上代码
tf.compat.v1.disable_eager_execution()
重新运行解决错误
相关推荐
精彩评论(0)