With #443 merged, our test suite fails if no device parameter is present in the array library.
|
x = xp.empty(2, device=device) |
array_api_tests/dtype_helpers.py:206: in is_device_dlpack_compatible
x = xp.empty(2, device=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: zeros(): incompatible function arguments. The following argument types are supported:
E 1. zeros(shape: int | Sequence[int], dtype: Dtype | None = float32, *, stream: StreamOrDevice = None) -> array
E
E Invoked with types: int, kwargs = { device: NoneType }
A simple fix would be to put this line in the try block below.
With #443 merged, our test suite fails if no
deviceparameter is present in the array library.array-api-tests/array_api_tests/dtype_helpers.py
Line 206 in 05b12af
A simple fix would be to put this line in thetryblock below.