Commit 338706c
fix: use non-deprecated is_autocast_enabled API and fix docstring
- torch.is_autocast_enabled() without device_type is deprecated in
PyTorch 2.8, use torch.is_autocast_enabled(device_type) instead
- Update docstring to accurately describe root cause (upstream autocast
leakage from nodes like SAM3, not fp8 specifically)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 8e4bc0e commit 338706c
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
0 commit comments