[英]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.