Closed kzhang2 closed 2 years ago
Thanks a lot @kzhang2 -- this looks great (incl. Meta-SGD!). I'll merge and cut a new release as soon as it passes the tests.
OK, it took a bit of elbow grease but it seems to work now (I also took the opportunity to rewrite some flaky tests). Thanks for contributing this.
Description
Fixes #284
Fix memory leak in
maml.py
andmeta-sgd.py
and add tests tomaml_test.py
andmetasgd_test.py
to check for possible future memory leaks. A test involving cloning parameters seems to fail, but my changes have nothing to do with it.If necessary, use the following space to provide context or more details.
Contribution Checklist
If your contribution modifies code in the core library (not docs, tests, or examples), please fill the following checklist.
Optional
If you make major changes to the core library, please run
make alltests
and copy-paste the content ofalltests.txt
below.