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

Class NotPattern

python/tvm/relax/dpl/pattern.py:549–559  ·  view source on GitHub ↗

Create a Pattern that matches the negation of a condition. Parameters ---------- to_reject: tvm.relax.dpl.DFPattern The pattern to deny.

Source from the content-addressed store, hash-verified

547
548@register_df_node
549class NotPattern(DFPattern):
550 """Create a Pattern that matches the negation of a condition.
551
552 Parameters
553 ----------
554 to_reject: tvm.relax.dpl.DFPattern
555 The pattern to deny.
556 """
557
558 def __init__(self, to_reject: "DFPattern"):
559 self.__init_handle_by_constructor__(ffi.NotPattern, to_reject) # type: ignore
560
561
562@register_df_node

Callers 1

rejectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…