move prim::None to prim::Constant (again) (#17186)
authoreellison <elias_ellison@brown.edu>
Tue, 19 Feb 2019 19:34:46 +0000 (11:34 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Feb 2019 19:45:50 +0000 (11:45 -0800)
commit82aa51114677b4d2187e1cc2d36f32158b7dddc0
treee278a10bdf1a78861374205be69a24e2303f1341
parent9ebc433bda3668092a4f9e1c5ecd6fcbfca5f922
move prim::None to prim::Constant (again) (#17186)

Summary:
Trying to land again, make prim::None into a case of prim::Constant. Reverted the previous landing because it broke an important onnx export test.

https://github.com/pytorch/pytorch/pull/16160
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17186

Differential Revision: D14115304

Pulled By: eellison

fbshipit-source-id: 161435fc30460b4e116cdd62c7b2e5b94581dcb7
34 files changed:
aten/src/ATen/core/interned_strings.h
aten/src/ATen/core/jit_type.h
test/cpp/jit/gtest.cpp
test/cpp/jit/no-gtest.cpp
test/cpp/jit/test_misc.h
test/expect/TestJit.test_conv.expect
test/expect/TestScript.test_if_is_none_dispatch.expect [new file with mode: 0644]
test/expect/TestScript.test_mutable_dce_graph_input.expect
test/test_jit.py
torch/csrc/jit/autodiff.cpp
torch/csrc/jit/constants.cpp
torch/csrc/jit/constants.h
torch/csrc/jit/export.cpp
torch/csrc/jit/import_method.cpp
torch/csrc/jit/ir.cpp
torch/csrc/jit/ir.h
torch/csrc/jit/passes/alias_analysis.cpp
torch/csrc/jit/passes/constant_pooling.cpp
torch/csrc/jit/passes/constant_propagation.cpp
torch/csrc/jit/passes/erase_number_types.cpp
torch/csrc/jit/passes/graph_fuser.cpp
torch/csrc/jit/passes/python_print.cpp
torch/csrc/jit/passes/shape_analysis.cpp
torch/csrc/jit/passes/to_batch.cpp
torch/csrc/jit/passes/utils/subgraph_utils.cpp
torch/csrc/jit/python_ir.cpp
torch/csrc/jit/register_prim_ops.cpp
torch/csrc/jit/script/compiler.cpp
torch/csrc/jit/script/file_check.cpp [new file with mode: 0644]
torch/csrc/jit/script/init.cpp
torch/csrc/jit/symbolic_script.cpp
torch/jit/__init__.py
torch/onnx/symbolic.py
torch/onnx/utils.py