Skip to content Skip to sidebar Skip to footer

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:

  1. You defined dropout instead of rate.
  2. The attributes you address (self.d_model etc.) are not defined or assigned at __init__.
  3. It doesn't exist for your Encoder class.

Post a Comment for "Transformer Model Not Able To Be Saved"