Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ignore asserting out dtype for undefined dtypes in test_prod#122

Merged
honno merged 1 commit intodata-apis:masterdata-apis/array-api-tests:masterfrom
honno:prod-partial-dtypeshonno/array-api-tests:prod-partial-dtypesCopy head branch name to clipboard
May 17, 2022
Merged

Ignore asserting out dtype for undefined dtypes in test_prod#122
honno merged 1 commit intodata-apis:masterdata-apis/array-api-tests:masterfrom
honno:prod-partial-dtypeshonno/array-api-tests:prod-partial-dtypesCopy head branch name to clipboard

Conversation

@honno
Copy link
Member

@honno honno commented May 17, 2022

Resolves #106 by blanket ignoring dtype assertions when what's expected doesn't exist, e.g. the default uint. Couldn't introduce a warning easily as I forgot we're using Hypothesis, so opted to do this completely silently 😅

Also ignoring dtype assertions (as well as shape assertions) before testing values isn't ideal, as it can obfuscate the core problems. Fortunately for test_prod I can't see this being a problem with the PyTorch scenario, although other partial dtype scenarios could be problematic... but don't seem to exist!

@honno honno merged commit 71639af into data-apis:master May 17, 2022
@honno honno deleted the prod-partial-dtypes branch February 28, 2024 13:20
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.

test_prod failing for PyTorch due to unsupported dtypes

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.