Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
DifferentialFunctionClassHolder.getInstance().getInstance("abs") fails due to guava #7170
When I first tried to run a ComputationGraph fit function, I got the following exception:
After a bit of investigation, I found that this method kept returning a null value :
Turns out the introspection done in DifferentialFunctionClassHolder using com.google.common.reflect.ClassPath kept on returning an empty list of classes. I traced this to a similar bug in Guava :
I upgraded guava to version 27.0.1-jre and the problem went away.
The guava version seems to be specified here.
Hope this helps.
Thanks for the detailed issue, though this is in part no longer relevant.
LossL1 has been updated to use Transforms.abs instead: https://github.com/deeplearning4j/deeplearning4j/blob/master/nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/lossfunctions/impl/LossL1.java#L88
Other than using the workaround of downloading guava, you can also consider using snapshots (though note there are a number of breaking changes there around ND4J datatypes, so you might need to make some modifications to your code to use snapshots) - https://deeplearning4j.org/docs/latest/deeplearning4j-config-snapshots
Now, I will leave this issue open for now because we use
@dd00f Was there anything special about your environment, other than java 11?