Skip to content

Commit bd7200c

Browse files
committed
- Remove silly unit test
1 parent 530f25b commit bd7200c

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/python/relay/test_dataflow_pattern.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -632,32 +632,6 @@ def test_at_most_one_parent():
632632
assert not pattern.match(n11)
633633

634634

635-
def test_parallel_injective():
636-
# Pattern
637-
P = is_op("add")(wildcard(), wildcard()) # 'parent'
638-
I = is_op("squeeze")(wildcard()) | is_op("transpose")(
639-
wildcard()
640-
) # 'intermediate' ('path' in the code)
641-
C = is_op("left_shift")(wildcard(), wildcard()) # 'child'
642-
pattern = dominates(P, I, C)
643-
644-
#
645-
# n5(P)
646-
# / \
647-
# n6(I) n8(I)
648-
# \ /
649-
# n9(C)
650-
#
651-
652-
x = relay.var("x", shape=(10, 20))
653-
n5 = relay.add(x, relay.const(1, "float32"))
654-
n6 = relay.squeeze(n5)
655-
n8 = relay.transpose(n5, axes=[0, 1])
656-
n9 = relay.left_shift(n6, n8)
657-
658-
assert pattern.match(n9)
659-
660-
661635
def test_match_dominator():
662636
# Pattern
663637
is_conv2d = is_op("nn.conv2d")(wildcard(), wildcard())

0 commit comments

Comments
 (0)