Skip to content
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

deploy model with custom layer #186

Open
Tixierae opened this issue Apr 30, 2019 · 0 comments
Open

deploy model with custom layer #186

Tixierae opened this issue Apr 30, 2019 · 0 comments

Comments

@Tixierae
Copy link

Tixierae commented Apr 30, 2019

Hi, and thank you for the great package!

when using export_savedmodel, which is the first step listed on the CloudML Deploying Models step-by-step instructions, I receive an error ValueError: Unknown layer: AttentionWithContext. AttentionWithContext is a custom layer that my model is using.

Since many users use custom layers, it would be very helpful to address this issue. Maybe using an approach similar to, e.g., Keras' custom_objects? See https://keras.io/getting-started/faq/#handling-custom-layers-or-other-custom-objects-in-saved-models

If a solution already exists, any help/advice would be highly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants