learnables / learn2learn

A PyTorch Library for Meta-learning Research
http://learn2learn.net
MIT License
2.61k stars 350 forks source link

Gradients not found in maml? why? #335

Closed brando90 closed 1 year ago

brando90 commented 2 years ago

I got this bizarre error:

  File "/home/miranda9/miniconda3/envs/metalearning_gpu/lib/python3.9/site-packages/learn2learn/algorithms/maml.py", line 169, in adapt
    self.module = maml_update(self.module, self.lr, gradients)
UnboundLocalError: local variable 'gradients' referenced before assignment

seems weird since it's coming from l2l. Any ideas?

Chhinna commented 2 years ago

yeah, getting the same error

seba-1511 commented 1 year ago

Closing: fixed in #387.