Commit 7269995
Copy model before benchmark warmup runs (pytorch#145858)
Fixes pytorch#144772
The eager warmup runs causes the model to change state so that later when we export it, the model is different than when we export it directly out of box. For some reason exporting the model with the changed state causes issues but exporting the inital model is ok. This is the reason why the accuracy checks pass but the performance check fails when exporting.
Pull Request resolved: pytorch#145858
Approved by: https://github.com/desertfire1 parent 6b41f31 commit 7269995
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3446 | 3446 | | |
3447 | 3447 | | |
3448 | 3448 | | |
3449 | | - | |
| 3449 | + | |
3450 | 3450 | | |
3451 | 3451 | | |
3452 | 3452 | | |
3453 | | - | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
3454 | 3458 | | |
3455 | 3459 | | |
3456 | 3460 | | |
| |||
0 commit comments