部署到 GCP Cloudml 的错误模型 [英] Bad model deploying to GCP Cloudml

查看:41
本文介绍了部署到 GCP Cloudml 的错误模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将使用 Tensorflow 1.7 训练的模型部署到 Google Cloud Platform.我收到以下错误:

I’m trying to deploy a model trained using Tensorflow 1.7 onto Google Cloud Platform. I get the following error:

创建版本失败.错误模型检测到错误:加载模型失败:加载服务:{名称:默认版本:1}失败:未找到:操作类型未注册'SparseFillEmptyRows'\n\n(错误代码:0)"

Create Version failed. Bad model detected with error: "Failed to load model: Loading servable: {name: default version: 1} failed: Not found: Op type not registered 'SparseFillEmptyRows'\n\n (Error code: 0)"

我知道 Cloudml 运行时预测仅支持 Tensorflow 1.6,所以我尝试指定:

I know Cloudml runtime prediction only supports Tensorflow 1.6 so I tried specifying:

REQUIRED_PACKAGES = [
  'tensorflow==1.6',
]

在 setup.py 中,但我仍然收到相同的消息

in setup.py but I still get the same message

感谢任何帮助

推荐答案

使用 1.6 重建并使用 --runtime-version=1.6 进行部署有效.

Rebuilding with 1.6 and deploying with --runtime-version=1.6 worked.

这篇关于部署到 GCP Cloudml 的错误模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆