Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Dec 4, 2023

What does this PR do?

.to(torch_dtype=...)

is deprecated in favor of:

.to(dtype=...)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

local_files_only=local_files_only,
)

if torch_dtype is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

torch_dtype should changed to dtype as well no? But no strong opinion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently have a discrepancy here. Need to resolve this first: https://huggingface.slack.com/archives/C01N44FJDHT/p1701688646192709

@sayakpaul sayakpaul merged commit 53bc30d into main Dec 5, 2023
@sayakpaul sayakpaul deleted the better_naming branch December 5, 2023 12:42
donhardman pushed a commit to donhardman/diffusers that referenced this pull request Dec 18, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
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.

4 participants