We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
description:代码本身可以正常运行,但是我添加bias_hh_attr=False,bias_ih_attr=False后代码就报错了,这个想不明白为何禁用偏执导致程序运行失败呢?太奇怪了…… (代码是在3.0beta上进行的,我刚刚又测试了2.2版本的此api就没有该问题,我应该是发现了3.0beta版本的一个小bug).
代码很简单如下所示:
import paddle import paddle.nn as nn paddle.seed(0) lstm=nn.LSTM(input_size=2,hidden_size=2,num_layers=1,dropout=0,proj_size=0) #在上一行添加bias_hh_attr=False,bias_ih_attr=False就会导致无法运行。 data=paddle.randint(0,3,(1,1,2))*1.0 print(lstm(data))
The text was updated successfully, but these errors were encountered:
develop version is worked with lstm=nn.LSTM(input_size=2,hidden_size=2,num_layers=1,dropout=0,proj_size=0, bias_hh_attr=None, bias_ih_attr=None)
lstm=nn.LSTM(input_size=2,hidden_size=2,num_layers=1,dropout=0,proj_size=0, bias_hh_attr=None, bias_ih_attr=None)
Sorry, something went wrong.
多谢大佬,那个develop version我就没尝试,我以为还不如3。0 beta版本呢
zyfncg
No branches or pull requests
bug描述 Describe the Bug
description:代码本身可以正常运行,但是我添加bias_hh_attr=False,bias_ih_attr=False后代码就报错了,这个想不明白为何禁用偏执导致程序运行失败呢?太奇怪了…… (代码是在3.0beta上进行的,我刚刚又测试了2.2版本的此api就没有该问题,我应该是发现了3.0beta版本的一个小bug).
代码很简单如下所示:
其他补充信息 Additional Supplementary Information
The text was updated successfully, but these errors were encountered: