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

Function _parse_target_entry

python/tvm/testing/utils.py:525–536  ·  view source on GitHub ↗

Parse a target entry from TVM_TEST_TARGETS env var. Entries can be plain kind names (e.g. "llvm") or JSON dicts (e.g. '{"kind": "opencl", "device": "mali"}').

(entry)

Source from the content-addressed store, hash-verified

523
524
525def _parse_target_entry(entry):
526 """Parse a target entry from TVM_TEST_TARGETS env var.
527
528 Entries can be plain kind names (e.g. "llvm") or JSON dicts
529 (e.g. '{"kind": "opencl", "device": "mali"}').
530 """
531 entry = entry.strip()
532 if entry.startswith("{"):
533 import json # pylint: disable=import-outside-toplevel
534
535 return json.loads(entry)
536 return entry
537
538
539def _tvm_test_targets():

Callers 1

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