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
DL4J: Loss function weights array should be automatically cast to appropriate datatype #8431
Please indicate relevant versions, including, if relevant:
Where applicable, please also provide:
and If I fall back to 1.0.0-beta4 I got this :
It seems library conflict with dl4j ui . when I removed deeplearning4j-ui from maven everything is fine
by changing weightsArray from
Now I can run my train/test model
Right, that's correct. You can't and shouldn't mix versions. Everything - DL4J, ND4J, etc - needs to be the same version.
You should always use the latest version too (for optimization, bug fixes and new features), you can see release notes here: https://deeplearning4j.org/release-notes.html
There's nothing to wait for. Everything is always released all at once.
Can you share code for this? It's a separate issue to the other one and I don't have any context here. Do you mean weight array in a loss function or something?
Thanks for your explanation. I should've looked in the maven repo for the latest dl4j-ui.
Yes it is the weight array in a loos function. here is the code
I only had to change double to float to solve the issue which I mentioned before
Ok, so it is a loss weights array. Yes, creating it as float (or casting to float) is a legitimate solution.
* eclipse#8431 Cast loss function weights array automatically Signed-off-by: AlexDBlack <firstname.lastname@example.org> * Add 'regex verbose mode' printing (ExecDebugListener) for TFGraphTestAllSameDiff' Signed-off-by: AlexDBlack <email@example.com> * Class import mapping fix Signed-off-by: AlexDBlack <firstname.lastname@example.org> * Reshape fixes Signed-off-by: AlexDBlack <email@example.com> * Don't swallow first exception in NativeOpExecutioner.exec(CustomOp) Signed-off-by: AlexDBlack <firstname.lastname@example.org>