Skip to content

refactor: Use with in Accelerator.autocast()instead of __enter__() and __exit__() for more elegant style.#3767

Merged
SunMarc merged 2 commits intohuggingface:mainfrom
EquationWalker:main
Sep 18, 2025
Merged

refactor: Use with in Accelerator.autocast()instead of __enter__() and __exit__() for more elegant style.#3767
SunMarc merged 2 commits intohuggingface:mainfrom
EquationWalker:main

Conversation

@EquationWalker
Copy link
Contributor

What does this PR do?

refactor: Use with in Accelerator.autocast()instead of __enter__() and __exit__() for more elegant style.

…_()` and `__exit__()`for more elegant style.
Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Indeed thanks for the clean-up !

@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.

@SunMarc
Copy link
Member

SunMarc commented Sep 18, 2025

@bot /style

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2025

Style bot fixed some files and pushed the changes.

@SunMarc SunMarc merged commit 8031e24 into huggingface:main Sep 18, 2025
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