Skip to content

Various fixes for the torch wrapper - #25

Merged
asmeurer merged 33 commits into
data-apis:mainfrom
asmeurer:torch-fixes
Mar 10, 2023
Merged

asmeurer merged 33 commits into
data-apis:mainfrom
asmeurer:torch-fixes

Conversation

@asmeurer

@asmeurer asmeurer commented Mar 6, 2023

Copy link
Copy Markdown
Member

Primarily from @thomasjpfan's feedback.

@asmeurer

asmeurer commented Mar 8, 2023

Copy link
Copy Markdown
Member Author

This is ready for review.

@asmeurer
asmeurer requested a review from rgommers March 8, 2023 02:27

@rgommers rgommers left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These changes LGTM. One CI job for numpy 1.21 still has 8 failures, which all don't look too interesting (~1e-46 inputs to some ufuncs).

@asmeurer

asmeurer commented Mar 8, 2023

Copy link
Copy Markdown
Member Author

No worried on CI. It typically takes a few iterations to get all the possible XFAILs from hypothesis.

@asmeurer

asmeurer commented Mar 8, 2023

Copy link
Copy Markdown
Member Author

(and just to be clear, those failures are all because of value-based type promotion, which we cannot disable in NumPy 1.21)

@asmeurer

asmeurer commented Mar 8, 2023

Copy link
Copy Markdown
Member Author

Now NumPy is crashing on CI with a floating-point exception https://github.com/asmeurer/array-api-compat/actions/runs/4368929147/jobs/7642133923. There must be some issue with mod in the C math library used on GitHub Actions.

@asmeurer
asmeurer enabled auto-merge March 9, 2023 23:28
@asmeurer
asmeurer merged commit 0706387 into data-apis:main Mar 10, 2023
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