Skip to content

Commit

Permalink
Apply config from partition
Browse files Browse the repository at this point in the history
  • Loading branch information
Akira Maruoka committed Mar 15, 2021
1 parent 7ce5d6a commit 0b9945f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/driver/tvmc/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def compile_model(
for codegen_from_cli in extra_targets:
codegen = composite_target.get_codegen_by_target(codegen_from_cli["name"])
partition_function = codegen["pass_pipeline"]
mod = partition_function(mod, params)
mod, codegen_config = partition_function(mod, params)
if codegen["config_key"] is not None:
config[codegen["config_key"]] = codegen_from_cli["opts"]
config[codegen["config_key"]] = codegen_from_cli["opts"] or codegen_config

if tuning_records and os.path.exists(tuning_records):
logger.debug("tuning records file provided: %s", tuning_records)
Expand Down

0 comments on commit 0b9945f

Please sign in to comment.