Skip to content

ImportError: cannot import name 'randn_tensor' from 'diffusers.utils' #5025

@Zerg-Overmind

Description

@Zerg-Overmind

Describe the bug

In the newest version, whenever you run: from diffusers.utils import randn_tensor
you will get the error: importError: cannot import name 'randn_tensor' from 'diffusers.utils'
But you can fix this by adding "from .torch_utils import randn_tensor" to your pythonxx/site-packages/diffusers/utils/init.py" after installing the diffusers....

Reproduction

run "from diffusers.utils import randn_tensor" after installing the latest version

Logs

No response

System Info

diffusers 0.21.0

Who can help?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions