0
点赞
收藏
分享

微信扫一扫

ValueError:Calling ‘Model.predict‘ in graph mode / 请求上传接口出现异常

脱下愤怒的小裤衩 2022-04-14 阅读 25
pythonlayui

运行报错之后找到

import tensorflow as tf

如果用到,在用到model的前面加上代码

tf.compat.v1.disable_eager_execution()

重新运行解决错误

举报

相关推荐

0 条评论