Constant prop prim::None (#15979)
authorElias Ellison <eellison@fb.com>
Tue, 15 Jan 2019 18:56:17 +0000 (10:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 15 Jan 2019 19:34:51 +0000 (11:34 -0800)
commit7d601715e5ca21cd15319d06a2f52aca77e60f9b
tree17d8e559a3e574f583cfbc4595bbc746cbc23e34
parent9a6fe4feec7e19436e3310ced562abd3b6fdd70c
Constant prop prim::None (#15979)

Summary:
Previously we were only constant propping prim::Constants, but we should be constant propping prim::None as well.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15979

Differential Revision: D13664692

Pulled By: eellison

fbshipit-source-id: 01839403576c21fc030c427e49275b8e1210fa8f
test/test_jit.py
torch/csrc/jit/passes/constant_propagation.cpp
torch/csrc/jit/register_prim_ops.cpp
torch/nn/functional.py