Closed ehennis closed 4 years ago
We currently do not support TF 2.0 as part of predictions. These are the supported versions for AI Platform: https://cloud.google.com/ml-engine/docs/tensorflow/runtime-version-list
I would suggest you use a Deep Learning VM image with TF serving.
@ehennis I will keep this issue opened in order to provide an update as to when we will support this.
Testing internally will update soon
Is there any update for when tf2 will be supported
Once it goes General Availbility, closing for now
Gonzalos meant to close this issue (see prior comment), but overlooked it. Closing it now.
Describe the bug A clear and concise description of what the bug is. Be sure to convey here whether it occurred locally or on the server (AI Platform, Google Dataflow)
I am following this tutorial: https://cloud.google.com/ml-engine/docs/tensorflow/deploying-models and using a model I created in TFv2. I am able to create the Saved_Model in my Colab using the following code:
This created a folder with the PB file and assets and variables folder. I then upload that to my bucket in the Google Cloud. I then ran the command to predict:
gcloud ai-platform local predict --model-dir=$MODEL_DIR --text-instances ci.txt --framework TENSORFLOW
The ci.txt is a comma separated list of my input numbers. I get the following error that shows my values:
What sample is this bug related to? Not sure how to answer this question. I listed the tutorial I followed above.
Source code / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
Here is the model: ver1.zip
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. I expect to be able to use the system and call into the model for predictions.
System Information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 and Google Colab
Framework and version (Tensorflow, scikit-learn, XGBoost): TFv2 Alpha (v1.12.0-9492-g2c319fb415 2.0.0-alpha0)
Python version: 3.6.7
Exact command to reproduce: gcloud ai-platform local predict --model-dir=$MODEL_DIR --text-instances ci.txt --framework TENSORFLOW
Tensorflow Transform environment (if applicable, see below):
To obtain the Tensorflow and Tensorflow Transform environment do
Additional context Add any other context about the problem here.
Full Error