解决tensorflow+gunicorn+flask的flag异常 UnrecognizedFlagError: Unknown command line flag

背景:TextCnn模型用tensorflow+flask+gunicorn搭建模型预测并发API生产环境,模型调用抛异常。html 报错代码:python #模型代码处: # Misc Parameters tf.flags.DEFINE_boolean("allow_soft_placement", True, "Allow device soft device placement") tf
相关文章
相关标签/搜索