IntelPython / dpnp

Data Parallel Extension for NumPy
BSD 2-Clause "Simplified" License
97 stars 22 forks source link

Check type of input in `dpnp.repeat` to raise a proper validation exception if any #1894

Closed antonwolfy closed 3 months ago

antonwolfy commented 3 months ago

That PR proposes to add an explicit type check of input array to dpnp.repeat.

Before the change there was the exception raised about missing ndim attribute for scalar input. The issue come from the comment.

Also the docstring description was updated with more details about supported input arguments. And more tests scenario were added to cover missing use cases.

github-actions[bot] commented 3 months ago

View rendered docs @ https://intelpython.github.io/dpnp/index.html