Skip to content

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.

5 participants