Skip to content

Conversation

nitnelave
Copy link
Contributor

There is currently (AFAIK) no way to set the random seed, making it impossible to have reproducible results.

void set_mode_cpu() { Caffe::set_mode(Caffe::CPU); }
void set_mode_gpu() { Caffe::set_mode(Caffe::GPU); }

// Set the random seed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this redundant comment?

@longjon
Copy link
Contributor

longjon commented Jul 11, 2016

Looks good except as noted, thanks.

@nitnelave
Copy link
Contributor Author

Comment removed as noted.

@shelhamer shelhamer merged commit 61944af into BVLC:master Jul 11, 2016
@shelhamer
Copy link
Member

Thanks for extending the Python interface @nitnelave.

@nitnelave nitnelave deleted the python/set_random_seed branch July 11, 2016 21:05
fxbit pushed a commit to Yodigram/caffe that referenced this pull request Sep 1, 2016
[pycaffe] add set_random_seed to the python interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants