-
Notifications
You must be signed in to change notification settings - Fork 187
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
TypeError: add_weight() got multiple values for argument 'name' #5
Comments
这可能是 Keras 升级了 API 导致的,你可以查一下最新的 API,相应的修改一下参数即可 |
self.W = self.add_weight(shape=(input_shape[-1], input_shape[-1],), |
请问我试着输出了attention中与x相乘的那个a的值,但发现权值是我序列长度的平均只。比如我的输入每句话有23个词,然后每个权值都是1/23。。请问有遇到过类似的情况吗,或者这样的情况的原因可能是什么呢。。刚入门。。求解答,谢谢大佬~ |
Attention类实现感觉有问题,本人使用TextBiRNN模型来跑,出现以下错误:
请问怎么解决呢
The text was updated successfully, but these errors were encountered: