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

Class VarPattern

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

A pattern for Var. Parameters ---------- name_hint: str The name of the variable. Optional, if not provided, the pattern will match any VarNode.

Source from the content-addressed store, hash-verified

313
314@register_df_node
315class VarPattern(DFPattern):
316 """A pattern for Var.
317
318 Parameters
319 ----------
320 name_hint: str
321 The name of the variable. Optional, if not provided,
322 the pattern will match any VarNode.
323 """
324
325 def __init__(self, name_hint: str = ""):
326 self.__init_handle_by_constructor__(ffi.VarPattern, name_hint) # type: ignore
327
328
329@register_df_node

Callers 1

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