【发布时间】:2019-08-30 15:58:57
【问题描述】:
我在 Google Colab 上使用 tensorflow 2.0 训练了一个简单的 mnist 模型,并将其保存为 .json 格式。 Click here 查看我编写代码的 Colab Notebook。然后在运行命令
!simple_tensorflow_serving --model_base_path="/" --model_platform="tensorflow"
显示错误 AttributeError: module 'tensorflow' has no attribute 'gfile'
simple_tensorflow_serving 有助于将经过训练的 TensorFlow 模型轻松部署到生产环境中。
版本我正在使用:
(1) TensorFlow - 2.0
(2) simple_tensorflow_serving - 0.6.4
提前谢谢你:)
【问题讨论】:
-
我在 TF 2 中遇到了与
FullTokenizer(vocab_file, do_lower_case)相同的问题
标签: google-colaboratory tensorflow-serving tensorflow2.0