MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / InitRand

Method InitRand

rtpose_wrapper/src/caffe/data_transformer.cpp:538–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536
537template <typename Dtype>
538void DataTransformer<Dtype>::InitRand() {
539 const bool needs_rand = param_.mirror() ||
540 (phase_ == TRAIN && param_.crop_size());
541 if (needs_rand) {
542 const unsigned int rng_seed = caffe_rng_rand();
543 rng_.reset(new Caffe::RNG(rng_seed));
544 } else {
545 rng_.reset();
546 }
547}
548
549template <typename Dtype>
550int DataTransformer<Dtype>::Rand(int n) {

Callers 3

NumSequenceMatchesMethod · 0.80
TYPED_TESTFunction · 0.80
LayerSetUpMethod · 0.80

Calls 2

caffe_rng_randFunction · 0.85
resetMethod · 0.45

Tested by 2

NumSequenceMatchesMethod · 0.64
TYPED_TESTFunction · 0.64