Repository navigation
Commit f20a03d
committed
Use device-supported float dtype in argmax/argmin overflow tests
test_arg{max,min}_int32_overflow allocated float64 arrays, which dpnp
downcasts to float32 on devices without fp64 support. Build them at
cupy.default_float_type() instead; the argmax/argmin index is
dtype-independent so the assertion is unchanged.1 parent 8870286 commit f20a03d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments