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

Function has_hexagon

python/tvm/testing/env.py:423–432  ·  view source on GitHub ↗

True if Hexagon can both compile and run (toolchain + attached device).

()

Source from the content-addressed store, hash-verified

421
422@functools.cache
423def has_hexagon() -> bool:
424 """True if Hexagon can both compile and run (toolchain + attached device)."""
425 try:
426 from tvm.contrib.hexagon import ( # pylint: disable=import-outside-toplevel
427 _ci_env_check,
428 )
429
430 return has_hexagon_toolchain() and _ci_env_check._run_time_check() is True
431 except Exception: # pylint: disable=broad-except
432 return False
433
434
435@functools.cache

Callers

nothing calls this directly

Calls 1

has_hexagon_toolchainFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…