Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ND4J/SameDiff: Jaccard, Euclidean, Manhattan and Cosine Distance throw Exceptions in backward pass #7001
The backward pass of the affected distance functions should work correctly without depending on what happened to their input beforehand.
I encountered the problem that Cosine, Euclidean, and Manhattan distance are throwing an
Here you can find two test cases one failing (one parameter of the distance function is used in addition) and the other passing: https://gist.github.com/SchmaR/9d691a518a182543a5ba970c8d24dbac
Stacktrace for euclidean distance
Do you have advice on how I could proceed/workaround or try to fix this issue?