-
Notifications
You must be signed in to change notification settings - Fork 74.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model weight not saved when exporting SavedModel #59287
Comments
Hi, @BorisPolonsky Apologize for the delay and I'm really sorry to inform that we do not support TF 1.x anymore so you'll have to change your TF 1.x code to Tensorflow 2.x by following our Migrate from TensorFlow 1.x to TensorFlow 2 official documentation and you can refer Migrate the SavedModel workflow Thank you! |
I know TF1.X is not longer support hence I'm migrating the existing TF1.X SavedModel two TF2 (for serving purpose only). I've looked through the official document and this post, where a |
Hi, @SuryanarayanaY Could you please look into this ? Thank you! |
Hi, Instead of using tf.saved_model.save to save the model, could you please try saving using tf.keras.Model.save and to load use tf.keras.models.load_model and let us know if you still face same behavior. Thanks! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Click to expand!
Issue Type
Support
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
tf2.8
Custom Code
Yes
OS Platform and Distribution
WSL2+tensorflow/tensorflow:2.8.0-gpu-jupyter image
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
I looked into this answer that solves the problem on his case. To me the only difference is that he converted variables in the original variable to constants. But for this approach the original
.ckpt
file is a prerequisite, which is not my caseStandalone code to reproduce the issue
Here's the metadata of the original model from by
tensorflow/serving
The text was updated successfully, but these errors were encountered: