Commit 73775f45 by Yizhi Liu Committed by Tianqi Chen

AlterOpLayout with tvm.target (#463)

* AlterOpLayout with tvm.target

* fix test
parent 343eb82c
......@@ -264,6 +264,7 @@ def build(graph, target=None, shape=None, dtype="float32",
if _all_var_init:
init_var = initialize_variables(shape, dtype)
# Apply optimization
with target:
graph = optimize(graph, shape, dtype, layout)
# Precompute prune
if params and cfg.pass_enabled("PrecomputePrune"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment