繁体   English   中英

Web 服务部署 Azure ML

[英]Web Service deployment Azure ML

我正在尝试部署 Keras model 但出现错误。 我的代码是

service = Webservice.deploy_from_model(workspace = ws, 
                       name = "test-classifier",
                       deployment_config = aciconfig,
                       models = [model],
                       image_config = image_config)
service.wait_for_deployment(show_output = True)

错误:

{
  "code": "GatewayTimeout",
  "statusCode": 504,
  "message": "ACI Service request failed. Reason: The gateway did not receive a response from 'Microsoft.ContainerInstance' within the specified time period.."
}

为什么会出现此错误?

默认超时时间为 1 分钟。您可以增加超时时间或尝试通过修改 score.py 以去除不必要的调用来加快服务速度。 如果这些操作不能解决问题,请使用本文中的信息来调试 score.py 文件。 该代码可能处于无响应 state 或无限循环中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM