Commit 29f9259
committed
Fix torch_dtype warning showing wrong value in from_single_file
The warning message intended to show the invalid torch_dtype value passed
by the user, but the variable was already reassigned to torch.float32
before the warning was logged. Move the reassignment after the warning
so the message correctly displays the original invalid value.1 parent b8aebf4 commit 29f9259
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
0 commit comments