Transformer Model Not Able To Be Saved
I'm trying to follow this tutrial https://colab.research.google.com/github/tensorflow/examples/blob/master/community/en/transformer_chatbot.ipynb, However, when I tried to save the
Solution 1:
If you get this error while calling transformer
then your problem is with creating the model, not saving it.
Other than that, I see several issues with your get_config
:
- You defined
dropout
instead ofrate
. - The attributes you address (
self.d_model
etc.) are not defined or assigned at__init__
. - It doesn't exist for your
Encoder
class.
Post a Comment for "Transformer Model Not Able To Be Saved"