Refactor Type Parser b/w Schemas & IRParser into a type common parser (#17383)
authorElias Ellison <eellison@fb.com>
Fri, 22 Feb 2019 21:34:48 +0000 (13:34 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Feb 2019 21:43:55 +0000 (13:43 -0800)
commit81b43202ae1eaa44ada84b193ae0fbfe0d11bc91
tree14dd4a19a503b8c21c2d612b62a4c58652f7467b
parentb0c18570cae548f0b9c030b2ae5905b2619e1a7c
Refactor Type Parser b/w Schemas & IRParser into a type common parser (#17383)

Summary:
Creates a new shared type parser to be shared between the IR parser and the Schema Parser.

Also adds parsing of CompleteTensorType and DimensionedTensorType, and feature-gates that for the IRParser.

Renames the existing type_parser for python annotations, python_type_parser, and names the new one jit_type_parser.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17383

Differential Revision: D14186438

Pulled By: eellison

fbshipit-source-id: bbd5e337917d8862c7c6fa0a0006efa101c76afe
test/cpp/jit/test_irparser.h
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/jit/irparser.cpp
torch/csrc/jit/operator.cpp
torch/csrc/jit/script/compiler.cpp
torch/csrc/jit/script/schema_type_parser.cpp [new file with mode: 0644]
torch/csrc/jit/script/schema_type_parser.h [new file with mode: 0644]
torch/csrc/jit/script/script_type_parser.cpp [moved from torch/csrc/jit/script/type_parser.cpp with 90% similarity]
torch/csrc/jit/script/script_type_parser.h [moved from torch/csrc/jit/script/type_parser.h with 100% similarity]
torch/csrc/jit/script/sugared_value.cpp