We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linspace
numpy
dpnp
There is a discrepancy in the output shape of the linspace function between numpy and dpnp.
Here is the code snippet to reproduce the issue:
import dpnp, numpy numpy.linspace(0, [0, 1, 2, 3, 4], num=0, endpoint=False).shape # (0, 5) dpnp.linspace(0, [0, 1, 2, 3, 4], num=0, endpoint=False).shape # (0,)
If endpoint=True , both functions return the same results.
endpoint=True
import dpnp, numpy numpy.linspace(0, [0, 1, 2, 3, 4], num=0, endpoint=True).shape # (0, 5) dpnp.linspace(0, [0, 1, 2, 3, 4], num=0, endpoint=True).shape # (0, 5)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a discrepancy in the output shape of the
linspace
function betweennumpy
anddpnp
.Here is the code snippet to reproduce the issue:
If
endpoint=True
, both functions return the same results.The text was updated successfully, but these errors were encountered: