enable NoneValue parameter assignment for WeakScriptModule (#14715)
authorWanchao Liang <wanchaol@users.noreply.github.com>
Tue, 4 Dec 2018 04:38:53 +0000 (20:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 04:40:55 +0000 (20:40 -0800)
commit119f9ec291884c81ef5de745e3338f04ee1152f5
tree41d021998a80ac453b589ce66f974cdbc6312c13
parentbb546b2e5ba92674247ef141d2e2e1d0055f8416
enable NoneValue parameter assignment for WeakScriptModule (#14715)

Summary:
This PR:

1. Handle None value attr in the WeakScriptModuleProxy
2. add back module tests that now passing
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14715

Differential Revision: D13313573

Pulled By: wanchaol

fbshipit-source-id: a6b7892707350290a6d69b6f6270ad089bfc954b
test/test_jit.py
torch/jit/__init__.py
torch/nn/modules/batchnorm.py
torch/nn/modules/linear.py
torch/nn/modules/normalization.py