Commit 1472516
fix "Expected all tensors to be on the same device, but found at least two devices" error (#11690)
* xx
* fix
Signed-off-by: YAO Matrix <[email protected]>
* Update model_loading_utils.py
* Update test_models_unet_2d_condition.py
* Update test_models_unet_2d_condition.py
* fix style
Signed-off-by: YAO Matrix <[email protected]>
* fix comments
Signed-off-by: Matrix Yao <[email protected]>
* Update unet_2d_blocks.py
* update
Signed-off-by: Matrix Yao <[email protected]>
---------
Signed-off-by: YAO Matrix <[email protected]>
Signed-off-by: Matrix Yao <[email protected]>
Co-authored-by: Sayak Paul <[email protected]>1 parent 638cc03 commit 1472516
File tree
3 files changed
+8
-9
lines changed- src/diffusers/models/unets
- tests/models
- unets
3 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
1829 | 1828 | | |
1830 | 1829 | | |
1831 | 1830 | | |
1832 | | - | |
1833 | | - | |
| 1831 | + | |
| 1832 | + | |
1834 | 1833 | | |
1835 | 1834 | | |
1836 | 1835 | | |
| |||
1839 | 1838 | | |
1840 | 1839 | | |
1841 | 1840 | | |
1842 | | - | |
1843 | | - | |
| 1841 | + | |
| 1842 | + | |
1844 | 1843 | | |
1845 | 1844 | | |
1846 | 1845 | | |
| |||
1945 | 1944 | | |
1946 | 1945 | | |
1947 | 1946 | | |
1948 | | - | |
| 1947 | + | |
1949 | 1948 | | |
1950 | 1949 | | |
1951 | 1950 | | |
| |||
2013 | 2012 | | |
2014 | 2013 | | |
2015 | 2014 | | |
2016 | | - | |
| 2015 | + | |
2017 | 2016 | | |
2018 | 2017 | | |
2019 | 2018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
0 commit comments