【发布时间】:2017-12-06 16:03:42
【问题描述】:
几周前我部署了一个模型,但我忘记了该模型需要哪些输入特征(是的,我知道我应该更好地跟踪这一点)。当我运行以下命令时
gcloud ml-engine predict \
--model $MODEL_NAME \
--version v1 \
--json-instances \
../test.json
我得到以下错误:
{
"error": "Prediction failed: Exception during model execution: AbortionError(code=StatusCode.INVALID_ARGUMENT, details=\"input size does not match signature\")"
}
我知道我的问题是因为我的 json 请求 (test.json) 中没有包含一些“必需的”占位符,但我无法找出任何方法来追溯找出缺少哪个占位符。
问题与question 相同,当发布者包含丢失的“阈值”张量时,他能够提交预测。
查看给定模型的预期输入的最简单方法是什么?
【问题讨论】:
标签: google-cloud-platform google-cloud-ml