benchmark
412a0f3d - Fix mobilenetv2 inductor freezing fail_accuracy (#145296)

Commit
1 year ago
Fix mobilenetv2 inductor freezing fail_accuracy (#145296) Summary: Issue: https://github.com/pytorch/pytorch/issues/144891 inductor freezing effectively enables inductor conv-batchnorm fusion. This fusion increases the accuracy error. More context about this: https://github.com/pytorch/pytorch/issues/120545 For Timm models that are run through benchmarks/dynamo/timm_models.py with TimsRunner the tolerance was increased here: https://github.com/pytorch/pytorch/blob/main/benchmarks/dynamo/timm_models.py#L367 If to comment out conv-batchnorm fusion as Elias suggested in Context issue, the accuracy is back. => Increasing tolerace for mobilenetv2 to the same value via introducing the special configuration for tolerance for freezing only X-link: https://github.com/pytorch/pytorch/pull/145296 Approved by: https://github.com/eellison, https://github.com/zou3519 Reviewed By: izaitsevfb Differential Revision: D68509876 fbshipit-source-id: f748156d78541fe33da63bf5b9cb6a3bd4045294
Author
Ivan Kobzarev
Parents
Loading