You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/25 19:42:27 UTC

[GitHub] [tvm] akmaru commented on a change in pull request #7658: [TVMC][TensorRT] Enable TensorRT target through TVMC

akmaru commented on a change in pull request #7658:
URL: https://github.com/apache/tvm/pull/7658#discussion_r639132253



##########
File path: python/tvm/driver/tvmc/compiler.py
##########
@@ -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

Review comment:
       The config returned by `partiton_for_tensorrt` reflects the user config by the`codegen_from_cli` argument.
   And, the other composite_targets don't return config.
    So, config with a `extra_codegen` can be overwritten codegen_config if any. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org