-
Notifications
You must be signed in to change notification settings - Fork 283
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
Failed to export savedmodel #23
Comments
I'm not sure what the issue is, I don't think it is related to this project in particular. You should ask on stackoverflow. |
Just in case someone needs it, I solved by replacing |
@FSetragno Could you post here some more details and exact code snippets with solution? def build_model(is_training, images, params): And tried to make own input_fn functions def serving_input_receiver_fn(): |
This is the code I use to export the model. Please note that you have to modify model_fn.py as mentioned above.
|
I tried to modify the model.fn code by placing this code into
but I am getting an error:
The code of model.fn itself is:
|
I also tried to change with
which looks like it works, but introduce a roblem with export outputs.
Did you encounter this problem? |
could you please also post the full model.fn here? I really need to solve this |
Ok so I was able to manage it in this way.. Noting that your solution is for python2:
|
I tried to export the model using the official guide (using savedmodel with estimators). I tried both approaches:
However I get the following error:
The text was updated successfully, but these errors were encountered: