Commit 281989d
Han Wang
fix: reset default device before .pt2 AOTInductor compilation
tests/pt/__init__.py may set a fake default device for CPU fallback,
which poisons AOTInductor compilation. Temporarily clear the default
device before converting to .pt2, matching the pattern used in
test_change_bias.py.1 parent 34d4cb5 commit 281989d
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
0 commit comments