Repository navigation
|
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? |
Answered by
XuehaiPan
Sep 21, 2022
Replies: 2 comments
|
I guess the issue is that for self.register_parameter('bias', None)It is probably good to filter out |
0 replies
|
@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 |
0 replies
Answer selected by
xianghang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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: