MCPcopy Create free account
hub / github.com/apache/tvm / test_not_pattern

Function test_not_pattern

tests/python/relax/test_dataflow_pattern.py:224–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222
223
224def test_not_pattern():
225 no_shape233 = ~wildcard().has_shape((2, 3, 3))
226 assert isinstance(no_shape233, NotPattern)
227 assert no_shape233.match(rx.Var("x", R.Tensor((3, 3, 3), "float32")))
228 assert not no_shape233.match(rx.Var("x", R.Tensor((2, 3, 3), "float32")))
229
230
231def test_dtype_pattern():

Callers

nothing calls this directly

Calls 4

wildcardFunction · 0.85
has_shapeMethod · 0.80
TensorMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…