-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
dynamic_lstm和dynamic_gru的H0如何使用? #11335
Labels
User
用于标记用户问题
Comments
感谢反馈
这里确实是Python接口写错了。。。需要fix下
dynamic_lstm 在C++代码中已经支持了的,需要在Python接口中expose下,暂时还没有其他方案。 |
OK |
这个有具体排期吗?因为没有可替换的方案,当前依赖H0任务无法开展 |
Hi @gavin1332 , 已提PR #11391 ,等merge了下载最新的wheel包就可以用了。 |
Hi @gavin1332 , 问题已fix,可以尝试编译最新的代码或者等明天在CI上下载最新的wheel包更新paddle。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dynamic_gru为什么要求h_0的shape为(hid_size, hid_size),不应该是(-1, hid_size)么?请参见代码
https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/layers/nn.py
681行左右:assert h_0.shape == (size, size), 'The shape of h0 should be(%d, %d)' % (size, size)
另外dynamic_lstm目前无法支持H0,有其他可代替的方法吗?
The text was updated successfully, but these errors were encountered: