huajsj commented on a change in pull request #9108:
URL: https://github.com/apache/tvm/pull/9108#discussion_r725195279
##########
File path: python/tvm/contrib/pipeline_executor.py
##########
@@ -70,24 +71,72 @@ def build(pipe_configs):
)
mconf["dev"] = "{},{}".format(dev.device_type, dev.device_id)
- # Create a pipeline configuration.
+ # Create a pipeline configuration, 'mod_idx' start from 0.
string_config[mod_idx] = mconf
- mods[mod] = {"dev": dev}
+ libs[mod_idx] = {"lib": lib, "dev": dev}
- return PipelineExecutorFactoryModule(mods, string_config)
+ return PipelineExecutorFactoryModule(libs, string_config)
class PipelineModule(object):
"""Wrapper of runtime module, caller can use this module to set parameters
and get outputs.
Parameters
----------
- module : PipelineExecutorFactoryModule
- Common interface for pipeline executor factory modules.
+ module : PipelineExecutorFactoryModule/Module
Review comment:
fixed.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]