我正在尝试部署一个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.."
}为什么我会得到这个错误?
发布于 2021-08-18 14:39:16
默认超时时间为1。minute.You可以增加超时时间,也可以通过修改score.py删除不必要的呼叫来加快服务速度。如果这些操作不能解决问题,请使用此article中的信息调试score.py文件。代码可能处于无响应状态或无限循环。
https://stackoverflow.com/questions/68823240
复制相似问题