YuchenJin commented on a change in pull request #8418:
URL: https://github.com/apache/tvm/pull/8418#discussion_r665592784
##########
File path: python/tvm/relay/build_module.py
##########
@@ -555,6 +559,9 @@ def create_executor(kind="debug", mod=None, device=None,
target="llvm"):
else:
device = _nd.device(str(target), 0)
+ if params is not None:
+ mod = IRModule.from_expr(bind_params_by_name(mod["main"], params))
Review comment:
Do we need to consider what if the mod does not contain a "main"
function, or the mod contains multiple functions(subgraphs), each with a
different params dict?
--
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]