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
Here is a MWE that shows the equal method is not defined properly in libgpyarray main class:
libgpyarray
import pygpu ctx = pygpu.init("cuda") g1 = pygpu.zeros((2, 2), context=ctx) g2 = pygpu.zeros((2, 2), context=ctx) print g1 == g2
-> False
False
if the class is defined as pygpu._array.ndgpuarray, it works as expected:
pygpu._array.ndgpuarray
import pygpu ctx = pygpu.init("cuda") g1 = pygpu.zeros((2, 2), context=ctx, cls=pygpu._array.ndgpuarray) g2 = pygpu.zeros((2, 2), context=ctx, cls=pygpu._array.ndgpuarray) print g1 == g2
-> [[ True True] [ True True]]
[[ True True] [ True True]]
The text was updated successfully, but these errors were encountered:
To fix this we should port the functionality of ndgpuarray to the base Cython class. This should be doable now that GpuElemewise is available in C.
Sorry, something went wrong.
No branches or pull requests
Here is a MWE that shows the equal method is not defined properly in
libgpyarray
main class:->
False
if the class is defined as
pygpu._array.ndgpuarray
, it works as expected:->
[[ True True] [ True True]]
The text was updated successfully, but these errors were encountered: