MCPcopy Index your code
hub / github.com/apache/tvm / _tvm_test_targets

Function _tvm_test_targets

python/tvm/testing/utils.py:539–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537
538
539def _tvm_test_targets():
540 target_str = os.environ.get("TVM_TEST_TARGETS", "").strip()
541 if target_str:
542 # De-duplicate while preserving order. dict items can't be hashed
543 # directly, so use their str() form as the dedup key.
544 targets = []
545 seen = set()
546 for t in target_str.split(";"):
547 t = t.strip()
548 if not t:
549 continue
550 parsed = _parse_target_entry(t)
551 key = str(parsed)
552 if key in seen:
553 continue
554 seen.add(key)
555 targets.append(parsed)
556 return targets
557
558 return DEFAULT_TEST_TARGETS
559
560
561def _compose(args, decs):

Callers 2

_target_enabledFunction · 0.90
_get_targetsFunction · 0.85

Calls 6

_parse_target_entryFunction · 0.85
strFunction · 0.85
getMethod · 0.45
splitMethod · 0.45
addMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…