Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed exception when sigma is already a Tensor object and not numpy array. #6064

Closed

Conversation

nileshkokane01
Copy link
Contributor

@nileshkokane01 nileshkokane01 commented Dec 5, 2023

What does this PR do?

Fixes exception when sigma is already a Tensor object and an attempt is made to cast it to tensor again.

Fixes #6054

Before submitting

Who can review?

@yiyixuxu

…ray. Conditional check for tensor, if yes, just assign it or else cast the numpy array to tensor
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu
Copy link
Collaborator

yiyixuxu commented Dec 5, 2023

Hi @nileshkokane01
this PR come in first so we will try to solve the bug with this PR for now:)
#6056 (review)

@nileshkokane01
Copy link
Contributor Author

Sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EulerDiscreteScheduler.set_timesteps() torch.from_numpy misuse error.
3 participants