Closed ndgrigorian closed 1 month ago
@oleksandr-pavlyk I've added a test for the correct behavior.
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers:
Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_358 ran successfully. Passed: 890 Failed: 15 Skipped: 91
Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_359 ran successfully. Passed: 889 Failed: 16 Skipped: 91
This PR fixes a small bug in
dpctl.tensor.repeat
caught by the array API tests where callingrepeat
withaxis=None
on a zero-size array would result in an array with the shape of the input, rather thanx.shape == (0,)
as expected.To fix this, the malformed fast path for zero-size arrays has been removed, as it was unnecessary: all calls in repeat are already special-cased in the C++ backend to return empty events for zero-size inputs, so any savings for this path were minimal.