Transformer model not able to be saved

后端 未结 1 548
你的背包
你的背包 2021-01-23 13:41

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

1条回答
  •  迷失自我
    2021-01-23 14:26

    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.

    0 讨论(0)
提交回复
热议问题