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
写模型时LayerList.insert(0, llinear)报错,而竞品的ModuleList.insert(0, linear)可以运行。
torch代码可以正常运行:
import torch modules = torch.nn.ModuleList() modules.insert(0, torch.nn.Linear(10, 10))
而Paddle运行会报错:
import paddle layers = paddle.nn.LayerList() layers.insert(0, paddle.nn.Linear(10, 10))
排查是LayerList的功能问题,需要支持长度为0时的insert
The text was updated successfully, but these errors were encountered:
wanghuancoder
vivienfanghuagood
No branches or pull requests
bug描述 Describe the Bug
写模型时LayerList.insert(0, llinear)报错,而竞品的ModuleList.insert(0, linear)可以运行。
torch代码可以正常运行:
而Paddle运行会报错:
排查是LayerList的功能问题,需要支持长度为0时的insert
The text was updated successfully, but these errors were encountered: