最近在flask中调用keras加载模型,并用模型进行预测model.predict时报错,报错的地方就是model.predict,而模型是可以正常载入的
AttributeError: '_thread._local' object has no attribute 'value'
我使用的TensorFlow版本为2.1.0,keras版本为2.3.1,flask版本为1.1.1
应该是线程的问题,但是我看网上的解决方法都是TensorFlow1.x的版本下的方法,大多都是说将降版本,有没有不降版本的方法