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

Class DataTypePattern

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

A pattern that matches another pattern with certain data type Parameters ---------- pattern: tvm.relax.dpl.DFPattern The input pattern that needs type annotation. dtype: str The dtype to match.

Source from the content-addressed store, hash-verified

590
591@register_df_node
592class DataTypePattern(DFPattern):
593 """A pattern that matches another pattern with certain data type
594
595 Parameters
596 ----------
597 pattern: tvm.relax.dpl.DFPattern
598 The input pattern that needs type annotation.
599
600 dtype: str
601 The dtype to match.
602 """
603
604 def __init__(self, pattern: "DFPattern", dtype: str):
605 self.__init_handle_by_constructor__(ffi.DataTypePattern, pattern, dtype) # type: ignore
606
607
608@register_df_node

Callers 1

has_dtypeFunction · 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…