Merged
Conversation
Member
|
That we could pass a reference could have been so much better documented by boost. Thanks for hunting this down–along with working, the code is simplified this way. I'll merge once tests finish running and I do a couple train_net. |
shelhamer
added a commit
that referenced
this pull request
Apr 19, 2014
Fix RNG segfault related to #297
Member
|
Although this is only a partial fix, it's better to merge this step in the right direction and then address the newly-revealed bias crash by further debugging and a follow-up PR. This seems to be a stranger crash than we originally thought, but the RNG code is better off with this change anyway. |
Closed
mitmul
pushed a commit
to mitmul/caffe
that referenced
this pull request
Sep 30, 2014
Fix RNG segfault related to BVLC#297
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes the
caffe_set_rngbehavior which was causing a crash (#335) with segfault by constructing a variate generator with a reference to Caffe's RNG engine (something that I found out was possible after hours of googling..).For some reason, I still get a segfault about 10% of the time I try to run ImageNet training, but this time it happens when filling the biases in conv1 (specifically when SyncedMemory calls malloc to initialize them)...
Not exactly sure what to say about this but it seems like it must be unrelated to the RNG since the ConstantFiller does not use it...