Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix reduction modes and misc issues (#7082)
* Fix reduction modes for Hinge Loss * Fix reductions on huber loss * Fix LogPoissonLoss reduction modes & full mode switching * Update mean pairwise square error tests in libnd4j to match match those in java land Expected values are calculated using the nested loop method, as implemented in LossOpValidation.java * Use Gradient Check Mask in Loss OP Validation Tests for MEAN_BY_NONZERO_WEIGHT_COUNT MEAN_BY_NONZERO_WEIGHT_COUNT is non differentiable for weight=0 so those points have to be masked out. * Add reduction mode support to MPWSE Loss * fix gradient check numerical issues for softmax losses * Fix calculation of weights gradient in cases where label smoothing is applied * All LossOpValidation Tests are passing
- Loading branch information
Showing
17 changed files
with
467 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.