Commit 3e9cda4
fix: cast scaler.scale(loss) result to torch.Tensor to fix pyrefly type error
Agent-Logs-Url: https://github.com/pytorch/ignite/sessions/4d2b947c-13f4-40a8-b7ef-8760007f3602
Co-authored-by: vfdev-5 <2459423+vfdev-5@users.noreply.github.com>1 parent 69a95b2 commit 3e9cda4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments