Skip to content

ENH: Generation of compatable device and dtype pairs for test_from_dlpack#443

Open
prady0t wants to merge 1 commit into
data-apis:masterfrom
prady0t:new-device-strategy
Open

ENH: Generation of compatable device and dtype pairs for test_from_dlpack#443
prady0t wants to merge 1 commit into
data-apis:masterfrom
prady0t:new-device-strategy

Conversation

@prady0t

@prady0t prady0t commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Closes #440

This is a fairly minimal fix. The new hh.device_dtype_pairs strategy generates pairs of all possible (dtype, device) such that dtype is compatible with device.

Running:

ARRAY_API_TESTS_MODULE=array_api_strict pytest array_api_tests/test_dlpack.py -sv --max-examples=10_000 

succeeds, which previously failed for dtype = float64 on device = no_float64

Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
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_from_dlpack is problematic with device-dependent dtypes

1 participant