Skip to content
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

[MPS] fix mps failing tests #934

Merged
merged 1 commit into from
Oct 22, 2022
Merged

[MPS] fix mps failing tests #934

merged 1 commit into from
Oct 22, 2022

Conversation

kashif
Copy link
Contributor

@kashif kashif commented Oct 21, 2022

fixed vae test as well as torch.generator() call.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 21, 2022

The documentation is not available anymore as the PR was closed or merged.

tests/test_models_vae.py Show resolved Hide resolved

# Device type MPS is not supported for torch.Generator() api.
if torch_device == "mps":
generator = torch.manual_seed(0)
Copy link
Member

Choose a reason for hiding this comment

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

👍

@pcuenca pcuenca merged commit 9bca402 into huggingface:main Oct 22, 2022
@kashif kashif deleted the mps-tests branch October 22, 2022 07:40
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