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

Function is_target

python/tvm/topi/utils.py:536–540  ·  view source on GitHub ↗

Return True if the name of the current target is one of provided names

(names)

Source from the content-addressed store, hash-verified

534
535
536def is_target(names):
537 """Return True if the name of the current target is one of provided names"""
538 names = [names] if isinstance(names, str) else names
539 target = tvm.target.Target.current(allow_none=False)
540 return any(name in target.keys for name in names)
541
542
543def is_dynamic_shape(shape):

Callers

nothing calls this directly

Calls 2

anyFunction · 0.70
currentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…