Skip to content

Comments

Fix PowerLayer gradient check failures by reducing step size#1840

Merged
jeffdonahue merged 1 commit intoBVLC:devfrom
shelhamer:fix-power-test
Feb 6, 2015
Merged

Fix PowerLayer gradient check failures by reducing step size#1840
jeffdonahue merged 1 commit intoBVLC:devfrom
shelhamer:fix-power-test

Conversation

@shelhamer
Copy link
Member

See #1252. This reduces the step size of the gradient checker so that the finite-difference approximation holds better. Tests now pass with boost 1.56+, which rewrote the normal distribution RNG -- although the switch to Ziggurat from Box-Muller was supposed to be transparent, it seems it wasn't.

Thanks to @jeffdonahue for the inference to boost RNG since it is always by the fillers regardless of CPU / GPU mode!

The gradient checker fails on certain elements of the PowerLayer checks,
but only 1-3 sometimes fail out of the 120 elements tested. This is not
due to any numerical issue in the PowerLayer, but the distribution of
the random inputs for the checks.

boost 1.56 switched the normal distribution RNG engine from Box-Muller
to Ziggurat.
jeffdonahue added a commit that referenced this pull request Feb 6, 2015
Fix PowerLayer gradient check failures by reducing step size
@jeffdonahue jeffdonahue merged commit a8f9e4b into BVLC:dev Feb 6, 2015
@jeffdonahue
Copy link
Contributor

Cool, thanks Evan

@shelhamer shelhamer deleted the fix-power-test branch April 15, 2015 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants