learnables / learn2learn

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

Wrong name for an argument in a class instantiation #318

Closed nightlessbaron closed 2 years ago

nightlessbaron commented 2 years ago

Description

Using a named argument whose name does not correspond to a parameter of the init method of the class being instantiated, resulted in a TypeError at runtime.

Fixed the arguments in 3 example files.

Contribution Checklist

If your contribution modifies code in the core library (not docs, tests, or examples), please fill the following checklist.

lgtm-com[bot] commented 2 years ago

This pull request fixes 3 alerts when merging d7cf44bcaba1e6c534ad04dfcff7afaa6bdc1d72 into d6af2f2bfb71244af65f27ef70bd21da7b051c92 - view on LGTM.com

fixed alerts:

seba-1511 commented 2 years ago

Awesome, thanks a lot Varad!