Skip to content

[From single file] remove depr warning #6043

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

Merged
merged 1 commit into from
Dec 5, 2023
Merged

[From single file] remove depr warning #6043

merged 1 commit into from
Dec 5, 2023

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.

@@ -282,7 +282,7 @@ def from_single_file(cls, pretrained_model_link_or_path, **kwargs):
)

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.

3 participants