AlterOpLayout with tvm.target (#463)
* AlterOpLayout with tvm.target * fix test
This commit is contained in:
Родитель
343eb82ca2
Коммит
73775f4532
|
@ -264,7 +264,8 @@ def build(graph, target=None, shape=None, dtype="float32",
|
|||
if _all_var_init:
|
||||
init_var = initialize_variables(shape, dtype)
|
||||
# Apply optimization
|
||||
graph = optimize(graph, shape, dtype, layout)
|
||||
with target:
|
||||
graph = optimize(graph, shape, dtype, layout)
|
||||
# Precompute prune
|
||||
if params and cfg.pass_enabled("PrecomputePrune"):
|
||||
graph, params = precompute_prune(graph, params)
|
||||
|
|
Загрузка…
Ссылка в новой задаче