comaniac commented on a change in pull request #8143:
URL: https://github.com/apache/tvm/pull/8143#discussion_r640157536
##########
File path: python/tvm/auto_scheduler/relay_integration.py
##########
@@ -64,19 +65,27 @@ def call_all_topi_funcs(mod, params, target):
disabled_pass={"AutoSchedulerLayoutRewrite"},
):
try:
- opt_mod, _ = relay.optimize(mod, target, params)
+ # TODO(jwfromm) Remove this once AlterOpLayout bug that mutates
+ # source module is fixed. Until then, create a clone.
+ mod_clone = deepcopy(mod)
Review comment:
Ah I see...that's what you meant by the source module was mutated. Yeah
this is definitely a bug to be fixed and this is a reasonable workaround.
--
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:
[email protected]