Skip to content

fix singlestep dpm tests #9716

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 2 commits into from
Oct 21, 2024
Merged

fix singlestep dpm tests #9716

merged 2 commits into from
Oct 21, 2024

Conversation

yiyixuxu
Copy link
Collaborator

@yiyixuxu yiyixuxu commented Oct 19, 2024

fix the failing singlestep scheduler tests

thanks to @gfaires to help identify this is only an issue with newer numpy version #9359

it comes down to this, this creates a numpy array in earlier versions (as expected), however it creates a pytorcn tensor in newer version - this is just really blizzard and I couln;t find relevant information about it

import numpy as np
import torch
# Print NumPy version
print(f"NumPy version: {np.__version__}")

ts = np.linspace(0, torch.tensor(999), 51)
print(type(ts))

@yiyixuxu yiyixuxu requested a review from DN6 October 19, 2024 12:33
@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.

@yiyixuxu yiyixuxu merged commit 2d280f1 into main Oct 21, 2024
18 checks passed
@yiyixuxu yiyixuxu deleted the singlestep-np branch October 21, 2024 23:27
sayakpaul added 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.

4 participants