Commit 44f6bc8
authored
Don't copy when unwrapping model (huggingface#2166)
* Don't copy when unwrapping model.
Otherwise an exception is raised when using fp16.
* Remove unused import1 parent 164b6e0 commit 44f6bc8
File tree
1 file changed
+1
-2
lines changed- examples/unconditional_image_generation
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
530 | 529 | | |
531 | 530 | | |
532 | 531 | | |
533 | | - | |
| 532 | + | |
534 | 533 | | |
535 | 534 | | |
536 | 535 | | |
| |||
0 commit comments