Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relay][RFC] Relay IR Text Format #1781

Merged
merged 64 commits into from
Dec 2, 2018
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
4f37853
squashed first 30 commits
joshpoll Oct 8, 2018
4717f68
use multiply, divide, and negative
joshpoll Oct 8, 2018
a38b9bf
towards working defn + refactoring
joshpoll Oct 8, 2018
07ec0ed
comment out failing test
joshpoll Oct 8, 2018
c6c9f09
ifelse and bool_lit
joshpoll Oct 9, 2018
00e79e0
funcType -> callType
joshpoll Oct 9, 2018
dfd2954
scientific notation tests
joshpoll Oct 9, 2018
959e8ab
parens and op associativity
joshpoll Oct 9, 2018
efe648a
use alpha_equal for tests
joshpoll Oct 9, 2018
4438d44
call. func+defn refactoring. work towards identtype and calltype
joshpoll Oct 9, 2018
b8bb3a7
identType, callType, tupleType, comment out unimplemented portions of…
joshpoll Oct 10, 2018
d4fb940
function annotations
joshpoll Oct 10, 2018
e6e2bf8
funcType and syntax changes (in particular => to ->)
joshpoll Oct 11, 2018
390dbea
attempt at adding antlr4 to cmake. remove outdated grammar rules. upd…
joshpoll Oct 13, 2018
2174b6a
add antlr to cmake. add new unused grammar rules. refactoring
joshpoll Oct 14, 2018
8a9c41e
fix alpha eq bug and change tests to use alpha eq. test refactoring
joshpoll Oct 14, 2018
41bb1ed
switch parser to use None instead of IncompleteType. revise alpha_eq …
joshpoll Oct 15, 2018
20f1add
refactor for new commits
joshpoll Oct 16, 2018
0657f4c
restore tests
joshpoll Oct 16, 2018
ba61579
restore def test
joshpoll Oct 16, 2018
445a622
python linting
joshpoll Oct 16, 2018
080df42
change sequence parsing
joshpoll Oct 18, 2018
a12bc17
remove compiler options
joshpoll Oct 18, 2018
9a34108
attempt at tensor + shape types
joshpoll Oct 19, 2018
a20a68d
op test
joshpoll Oct 19, 2018
32f644b
tensor type
joshpoll Oct 19, 2018
7742e0c
fix some rebase issues
joshpoll Oct 19, 2018
720af91
account for change in relay.Function interface and use relay.const
joshpoll Oct 19, 2018
1069677
remove pretty printer test file
joshpoll Oct 19, 2018
703673c
-> only when return type is present. fn for function types
joshpoll Oct 21, 2018
2a1de38
semver
joshpoll Oct 22, 2018
becedbf
add python type checking to git ignore
joshpoll Oct 22, 2018
955fc4e
make bools and builtin types more python-esque. realign antlr tags
joshpoll Oct 22, 2018
5de44c7
rm unused code
joshpoll Oct 23, 2018
8715a7e
linting
joshpoll Oct 23, 2018
4301600
revert nullable alpha_equal changes
joshpoll Oct 23, 2018
c1db228
cmake config
joshpoll Oct 25, 2018
f6991fc
delete alpha_eq
joshpoll Oct 25, 2018
96960bd
use scalar_type
joshpoll Oct 26, 2018
d640525
expose parse and parse_file via __init__.py
joshpoll Nov 1, 2018
e33b425
towards parser script tests
joshpoll Nov 1, 2018
7d956fb
complete parser testing compatibility and expose fromtext
joshpoll Nov 2, 2018
a396cf7
fix bad imports
joshpoll Nov 2, 2018
e04dfa5
ImportError -> Exception
joshpoll Nov 2, 2018
3fd20b1
linting
joshpoll Nov 2, 2018
9f03684
linting
joshpoll Nov 2, 2018
98e44c5
linting
joshpoll Nov 2, 2018
ac74b91
ci bump
joshpoll Nov 2, 2018
fe8a7a6
exit earlier
joshpoll Nov 2, 2018
bac7c19
dependencies
joshpoll Nov 2, 2018
fcd220b
delete separate script
joshpoll Nov 2, 2018
0cf7594
failing test. should fail ci
joshpoll Nov 2, 2018
30bbbfc
simplify failing test. rework import
joshpoll Nov 2, 2018
4eaca59
switch USE_ANTLR from cpu to gpu
joshpoll Nov 2, 2018
3199d1e
rebase
joshpoll Nov 20, 2018
081a907
fix ci (please)
joshpoll Nov 28, 2018
f837861
source /etc/profile to add JAVA_HOME
joshpoll Nov 30, 2018
7eefbf3
revert install_java change. source /etc/profile during make function
joshpoll Nov 30, 2018
f3abc5d
enable antlr on gpu
joshpoll Nov 30, 2018
3e2244f
trigger parser tests
joshpoll Nov 30, 2018
ce72502
revert Dockerfile to master. remove parser tests from this pr
joshpoll Dec 1, 2018
f092434
revert source
joshpoll Dec 1, 2018
5653528
use ENV
joshpoll Dec 1, 2018
533972b
modify how ANTLR runs in cmake
joshpoll Dec 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dependencies
  • Loading branch information
joshpoll committed Dec 1, 2018
commit bac7c19345d44a8ea5bcd5d66750e2a912309266
2 changes: 1 addition & 1 deletion tests/python/relay/test_ir_parser.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from tvm.relay.parser import enabled
if not enabled():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not do the exit here, this will likely cause the problem of test. Instead, in each test function, check relay.parser.enabled() and return

exit()

import tvm
from tvm import relay
from tvm.relay._parser import ParseError
from tvm.relay.parser import enabled
from tvm.relay.ir_pass import alpha_equal
from nose.tools import nottest, raises
from typing import Union
Expand Down