jwfromm opened a new pull request #8143:
URL: https://github.com/apache/tvm/pull/8143


   There's been a long-known issue where sometimes during alter_op_layout, the 
source IRModule is mutated. Sometimes this can cause errors during task 
extraction. One example model where the issue pops up is 
[yolov3-tiny](https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/tiny-yolov3).
 An easy workaround to avoid this bug is making a copy of the input module 
before applying optimization passes. This PR adds a copy step to both autotvm 
and auto_scheduler. I'm not sure what tests to add since the bug is extremely 
difficult to pin down. It does trigger with the above linked yolo model though.
   


-- 
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]


Reply via email to