-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
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
libnd4j: where_np shape function needs proper implementation #6226
Comments
Numpy behave the next way:
|
The TF behave as follow:
the Where op behave as TF. |
Right, that was my conclusion. The op implementation seems correct, but the shape function is wrong. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
https://github.com/deeplearning4j/deeplearning4j/blob/master/libnd4j/include/ops/declarable/generic/boolean/where_np.cpp#L121-L145
Currently hard-coded to [10,10] output.
I believe it should have shape [numMatches, rank(input)], where numMatches is the number of non-zero elements.
The text was updated successfully, but these errors were encountered: