learn2learn icon indicating copy to clipboard operation
learn2learn copied to clipboard

Gradients not found in maml? why?

Open brando90 opened this issue 2 years ago • 1 comments

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?

brando90 avatar May 12 '22 22:05 brando90

yeah, getting the same error

Chhinna avatar Jun 02 '22 03:06 Chhinna

Closing: fixed in #387.

seba-1511 avatar May 29 '23 01:05 seba-1511