8000 fix typo in code snippet by MrZilinXiao · Pull Request #199 · huggingface/accelerate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix typo in code snippet #199

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
Nov 12, 2021
Merged

fix typo in code snippet #199

merged 1 commit into from
Nov 12, 2021

Conversation

MrZilinXiao
Copy link
Contributor

Both accelerator or Accelerator would do the trick, but accelerate won't since we never import it and even we do, the backward() method doesn't exist in accelerate.

Both `accelerator` or `Accelerator` would do the trick, but `accelerate` won't since we never import it and even we do, the `backward()` method doesn't exist in `accelerate`.
Copy link
Collaborator
@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Oh that was a bad typo indeed, thanks a lot for fixing!

@sgugger sgugger merged commit d820a58 into huggingface:main Nov 12, 2021
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.

2 participants
0