Commit 2db65f8
committed
binary(): type the dask+cupy meta so the lazy dtype matches float32
_run_dask_cupy_binary passed meta=cupy.array(()), which defaults to
float64, so the lazy dask array advertised float64 while the chunk
function _run_cupy_binary computes float32. The eager dtype fix in the
previous commit did not cover the advertised dask+cupy dtype, and the
existing tests only check the computed dtype (general_output_checks
computes before asserting), so the mismatch went unnoticed.
Pass meta=cupy.array((), dtype='f4') and assert the lazy dtype in
test_binary_dask_cupy. Same advertised-vs-computed class as aspect #2682
and focal #3217.1 parent 9de6889 commit 2db65f8
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments