azure - Web 服务部署 Azure ML
问题描述
我正在尝试部署 Keras 模型但出现错误。我的代码是
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 文件。代码可能处于无响应状态或无限循环。
推荐阅读
- tsql - SQL Server 2012 - 使用游标/动态 SQL 组合是好的做法吗?
- php - Twitter API 搜索主题标签 - 一些缺失
- vba - 单击文本框时显示屏幕键盘
- python - Python - 根据起始 IP 创建 IP 列表
- git - 验证拉取请求时如何防止 VSTS 生成 NuGet 包?
- python - 为什么在使用之前声明这个范围变量?
- mysql - 如何在去年的任何 3 个月内获得最高的销售额
- extjs - extjs 表单、组合和隐藏名称
- python - 以 epsilon 精度将 Pandas DataFrame 条件转换为负、零和正
- python - 从字符串中删除字母前后的空格