Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Oct 19, 2019
1 parent a5cd7d2 commit 66c9472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/tvm/relay/feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum Feature : int {
fLetRec = 17
};

constexpr size_t feature_count = 17;
constexpr size_t feature_count = 18;

/*!
* \brief A finite set of Feature.
Expand Down
5 changes: 3 additions & 2 deletions tests/python/relay/test_pass_partial_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,13 @@ def test_tuple_match():

def test_fatal():
msg = "user-defined fatal message"
assert alpha_equal(dcpe(Fatal(msg)), Fatal(msg))
UnitType = TupleType([])
assert alpha_equal(dcpe(Fatal(msg, UnitType)), Fatal(msg, UnitType))
mod = Module()
p = Prelude(mod)
orig = Function([], p.hd(p.nil()), TupleType([]))
assert alpha_equal(dcpe(orig, mod=mod).body, Fatal(relay.NO_MATCH_MSG))


if __name__ == '__main__':
pytest.main()
pytest.main([__file__])

0 comments on commit 66c9472

Please sign in to comment.