Skip to content

Commit

Permalink
AlterOpLayout with tvm.target (dmlc#463)
Browse files Browse the repository at this point in the history
* AlterOpLayout with tvm.target

* fix test
  • Loading branch information
yzhliu authored and tqchen committed May 3, 2018
1 parent 60c685d commit 63bd093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/nnvm/compiler/build_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63bd093

Please sign in to comment.