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

Fix override get_config warning #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosandr
Copy link

@cosandr cosandr commented Oct 27, 2020

Fixes WARNING:tensorflow:Model failed to serialize as JSON. Ignoring... Layer AttentionWeightedAverage has arguments in `__init__` and therefore must override `get_config`.

Superfluous but gets rid of a warning, from what I understand it shouldn't affect functionality in any way.

Fixes "WARNING:tensorflow:Model failed to serialize as JSON. Ignoring... Layer AttentionWeightedAverage has arguments in `__init__` and therefore must override `get_config`."

See https://www.tensorflow.org/guide/keras/custom_layers_and_models#you_can_optionally_enable_serialization_on_your_layers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant