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

Function _build

tests/python/nightly/test_nnapi/infrastructure.py:75–88  ·  view source on GitHub ↗
(mod, enable_nnapi)

Source from the content-addressed store, hash-verified

73
74
75def _build(mod, enable_nnapi):
76 if isinstance(mod, tvm.relax.expr.Call):
77 mod = tvm.IRModule.from_expr(mod)
78
79 if enable_nnapi:
80 mod = tvm.relax.transform.FoldConstant()(mod)
81 mod = reshape_matmul(mod)
82 mod = decompose_clip(mod)
83 mod = partition_for_nnapi(mod)
84
85 mod = tvm.relax.transform.RunCodegen()(mod)
86 ex = tvm.compile(mod, target={"kind": "llvm", "mtriple": "aarch64-linux-android"})
87
88 return ex
89
90
91def _run(remote, tracker, ex, inputs):

Callers 1

build_and_runFunction · 0.70

Calls 5

partition_for_nnapiFunction · 0.90
reshape_matmulFunction · 0.85
decompose_clipFunction · 0.85
from_exprMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…