Add validator for optimizers when parameters are shared
authorJiyan Yang <chocjy@fb.com>
Thu, 18 Apr 2019 04:07:42 +0000 (21:07 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Apr 2019 04:10:38 +0000 (21:10 -0700)
commitc48e1679f9fe758abe8e3dd126ae87d4daef3af0
tree0a26e5d7722b648fab1072047f6ab6e3c3f1a54e
parent2787f1d8edbd4aadd4a8680d204341a1d7112e2d
Add validator for optimizers when parameters are shared

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18497

Reviewed By: kennyhorror

Differential Revision: D14614738

fbshipit-source-id: beddd8349827dcc8ccae36f21e5d29627056afcd
caffe2/python/layer_model_helper.py
caffe2/python/layer_parameter_sharing_test.py
caffe2/python/optimizer.py