MCPcopy Create free account
hub / github.com/BVLC/caffe / reset

Function reset

matlab/+caffe/private/caffe_.cpp:480–489  ·  view source on GitHub ↗

Usage: caffe_('reset')

Source from the content-addressed store, hash-verified

478
479// Usage: caffe_('reset')
480static void reset(MEX_ARGS) {
481 mxCHECK(nrhs == 0, "Usage: caffe_('reset')");
482 // Clear solvers and stand-alone nets
483 mexPrintf("Cleared %d solvers and %d stand-alone nets\n",
484 solvers_.size(), nets_.size());
485 solvers_.clear();
486 nets_.clear();
487 // Generate new init_key, so that handles created before becomes invalid
488 init_key = static_cast<double>(caffe_rng_rand());
489}
490
491// Usage: caffe_('read_mean', mean_proto_file)
492static void read_mean(MEX_ARGS) {

Callers 1

~scoped_ptrMethod · 0.85

Calls 3

mxCHECKFunction · 0.85
caffe_rng_randFunction · 0.85
sizeMethod · 0.45

Tested by 1

~scoped_ptrMethod · 0.68