Skip to content

Update autoencoder_kl_cosmos.py #12045

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 4 commits into from
Aug 2, 2025

Conversation

tanuj-rai
Copy link
Contributor

What does this PR do?

This PR replaces an incorrect call to torch.reshape(...) with hidden_states.reshape(...) to prevent NameError.

Fixes #12025

Before submitting

Who can review?

@a-r-r-o-w

Copy link
Member

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

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

Thanks!

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

@a-r-r-o-w
Copy link
Member

@tanuj-rai Could you run make style and push the changes?

@a-r-r-o-w
Copy link
Member

@bot /style

Copy link
Contributor

github-actions bot commented Aug 2, 2025

Style bot fixed some files and pushed the changes.

@a-r-r-o-w a-r-r-o-w merged commit 359b605 into huggingface:main Aug 2, 2025
10 of 11 checks passed
@tanuj-rai
Copy link
Contributor Author

tanuj-rai commented Aug 2, 2025

@tanuj-rai Could you run make style and push the changes?

I am really Sorry @a-r-r-o-w, I have missed your comment, but thank you for merging the PR.

@a-r-r-o-w
Copy link
Member

No worries, I forgot we had a bot setup to help with style fixes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants