AlanB commited on
Commit
37940d4
·
1 Parent(s): 89be630

Fixed new error cannot import name 'randn_tensor' from 'diffusers.utils'

Browse files
Files changed (1) hide show
  1. 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