Fixed new error cannot import name 'randn_tensor' from 'diffusers.utils'
Browse files- pipeline.py +1 -2
pipeline.py
CHANGED
|
@@ -24,9 +24,8 @@ from diffusers.utils import (
|
|
| 24 |
is_accelerate_available,
|
| 25 |
is_accelerate_version,
|
| 26 |
logging,
|
| 27 |
-
randn_tensor,
|
| 28 |
)
|
| 29 |
-
|
| 30 |
|
| 31 |
# ------------------------------------------------------------------------------
|
| 32 |
|
|
|
|
| 24 |
is_accelerate_available,
|
| 25 |
is_accelerate_version,
|
| 26 |
logging,
|
|
|
|
| 27 |
)
|
| 28 |
+
from diffusers.utils.torch_utils import randn_tensor
|
| 29 |
|
| 30 |
# ------------------------------------------------------------------------------
|
| 31 |
|