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

Method Rand

rtpose_wrapper/src/caffe/data_transformer.cpp:550–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549template <typename Dtype>
550int DataTransformer<Dtype>::Rand(int n) {
551 CHECK(rng_);
552 CHECK_GT(n, 0);
553 caffe::rng_t* rng =
554 static_cast<caffe::rng_t*>(rng_->generator());
555 return ((*rng)() % n);
556}
557
558INSTANTIATE_CLASS(DataTransformer);
559

Callers

nothing calls this directly

Calls 1

generatorMethod · 0.80

Tested by

no test coverage detected