Skip to content

Commit

Permalink
- Remove silly unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Jun 7, 2022
1 parent 530f25b commit bd7200c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/python/relay/test_dataflow_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,32 +632,6 @@ def test_at_most_one_parent():
assert not pattern.match(n11)


def test_parallel_injective():
# Pattern
P = is_op("add")(wildcard(), wildcard()) # 'parent'
I = is_op("squeeze")(wildcard()) | is_op("transpose")(
wildcard()
) # 'intermediate' ('path' in the code)
C = is_op("left_shift")(wildcard(), wildcard()) # 'child'
pattern = dominates(P, I, C)

#
# n5(P)
# / \
# n6(I) n8(I)
# \ /
# n9(C)
#

x = relay.var("x", shape=(10, 20))
n5 = relay.add(x, relay.const(1, "float32"))
n6 = relay.squeeze(n5)
n8 = relay.transpose(n5, axes=[0, 1])
n9 = relay.left_shift(n6, n8)

assert pattern.match(n9)


def test_match_dominator():
# Pattern
is_conv2d = is_op("nn.conv2d")(wildcard(), wildcard())
Expand Down

0 comments on commit bd7200c

Please sign in to comment.