Skip to content

Commit da368bd

Browse files
author
yunjing.lh
committed
Delete unused function
1 parent 625f816 commit da368bd

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

python/tvm/autotvm/task/relay_integration.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,6 @@ def _lower(func,
5353
grc = graph_runtime_codegen.GraphRuntimeCodegen(None, target)
5454
return grc.codegen(mod["main"])
5555

56-
# TODO(moreau89) find a more elegant way to build for VTAs
57-
def _build(func,
58-
target,
59-
target_host,
60-
params):
61-
""" Helper to build VTA properly.
62-
"""
63-
64-
from tvm import relay
65-
66-
if hasattr(target, 'device_name') and target.device_name == "vta":
67-
with relay.build_config(opt_level=3, disabled_pass={"AlterOpLayout"}):
68-
import vta
69-
with vta.build_config():
70-
return relay.build(func, target, target_host, params)
71-
# default case
72-
return relay.build(func, target, target_host, params)
7356

7457
def extract_from_program(func, params, ops, target, target_host=None):
7558
""" Extract tuning tasks from a relay program.

0 commit comments

Comments
 (0)