Skip to content

Make CheckGradientExhaustive fail for topless layers#350

Merged
shelhamer merged 1 commit intoBVLC:devfrom
longjon:finicky-exhaustive
Apr 22, 2014
Merged

Make CheckGradientExhaustive fail for topless layers#350
shelhamer merged 1 commit intoBVLC:devfrom
longjon:finicky-exhaustive

Conversation

@longjon
Copy link
Contributor

@longjon longjon commented Apr 22, 2014

Without this commit, it is possible to mistakenly call CheckGradientExhaustive on a layer with no top blobs (i.e., a loss layer), causing the gradient check to silently succeed while doing nothing. With this commit, doing so will cause the test to fail.

All existing tests continue to pass.

See, e.g., @aravindhm's comment in #258.

Without this commit, it is possible to mistakenly call
CheckGradientExhaustive on a layer with no top blobs (i.e., a loss
layer), causing the gradient check to silently succeed while doing
nothing. With this commit, doing so will cause the test to fail.
@shelhamer
Copy link
Member

Good safeguard against silent mistakes. Thanks Jon.

shelhamer added a commit that referenced this pull request Apr 22, 2014
Make CheckGradientExhaustive fail for topless layers
@shelhamer shelhamer merged commit 0175917 into BVLC:dev Apr 22, 2014
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
Make CheckGradientExhaustive fail for topless layers
@longjon longjon deleted the finicky-exhaustive branch December 30, 2014 04:59
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

Comments