Skip to content

[Fix] Syntax error #10068

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 2, 2024
Merged

[Fix] Syntax error #10068

merged 1 commit into from
Dec 2, 2024

Conversation

SahilCarterr
Copy link
Contributor

What does this PR do?

Fix Syntax error on CTX
Added parentheses to is_accelerate_available function to call it.

CTX = init_empty_weights if is_accelerate_available() else nullcontext 

Fixes #10052

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed.
@sayakpaul @yiyixuxu

@sayakpaul sayakpaul requested a review from DN6 December 1, 2024 13:52
@DN6 DN6 merged commit 784b351 into huggingface:main Dec 2, 2024
7 checks passed
@SahilCarterr SahilCarterr deleted the fix_ctx_syntax branch December 3, 2024 11:57
lawrence-cj pushed a commit to lawrence-cj/diffusers that referenced this pull request Dec 4, 2024
sayakpaul pushed a commit that referenced this pull request Dec 23, 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.

syntax error on ctx
3 participants