-
When running the following code, I got an error import torchopt
import torch
torchopt.MetaAdam(torch.nn.Linear(10, 2, bias=False), lr=1e-3) The detailed error message is
However, if I change torchopt.MetaAdam(torch.nn.Linear(10, 2, bias=True), lr=1e-3) it seems to work fine. Is there a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I guess the issue is that for self.register_parameter('bias', None) It is probably good to filter out |
Beta Was this translation helpful? Give feedback.
-
@xianghang Thanks for reporting this. It's a bug. We will fix it and publish a new wheel right away (released as pip3 install --upgrade torchopt |
Beta Was this translation helpful? Give feedback.
@xianghang Thanks for reporting this. It's a bug. We will fix it and publish a new wheel right away (released as
0.5.0.post4
). Upgrade your installation: