[Relay] Roundtrip part of pretty printer and parser (#3460)
author雾雨魔理沙 <lolisa@marisa.moe>
Tue, 9 Jul 2019 00:30:43 +0000 (17:30 -0700)
committerJared Roesch <roeschinc@gmail.com>
Tue, 9 Jul 2019 00:30:43 +0000 (17:30 -0700)
commit7fb9557bf2bcabd49c319a28efac138c68dd7e3d
tree3349cab673a902b510fc3a0ae02e380dd7f90aa7
parent7b9880163b8d93161ea49342491099f307deac7b
[Relay] Roundtrip part of pretty printer and parser (#3460)

* init

fix rebase

lint

fix cmake

try again

fix ci

* add gitignore

* fix format

* do not include .interp and .tokens
20 files changed:
.gitignore
cmake/modules/ANTLR.cmake
python/tvm/relay/_parser.py
python/tvm/relay/grammar/Relay.g4
python/tvm/relay/grammar/py3/.gitattributes [new file with mode: 0644]
python/tvm/relay/grammar/py3/Relay.interp [deleted file]
python/tvm/relay/grammar/py3/Relay.tokens [deleted file]
python/tvm/relay/grammar/py3/RelayLexer.interp [deleted file]
python/tvm/relay/grammar/py3/RelayLexer.py
python/tvm/relay/grammar/py3/RelayLexer.tokens [deleted file]
python/tvm/relay/grammar/py3/RelayParser.py
python/tvm/relay/prelude.rly
src/relay/ir/alpha_equal.cc
src/relay/ir/doc.cc
src/relay/ir/doc.h
src/relay/ir/expr.cc
src/relay/ir/pretty_printer.cc
tests/python/relay/test_ir_parser.py
tests/python/relay/test_ir_text_printer.py
tests/python/relay/test_pass_alpha_equal.py