问题变了:
tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable batch_normalization_2/moving_mean from Container: localhost.
This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/batch_normalization_2/moving_mean)
[[{{node batch_normalization_2/cond/FusedBatchNormV3/ReadVariableOp}}]]
以上报错,是在keras模型部署到python的flask服务器 遇到 估计django也会出现
从提示看:读资源变量出错 变量没有初始化等 这里意思是session已经变了