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

Method PrefetchRand

src/caffe/layers/window_data_layer.cpp:219–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217
218template <typename Dtype>
219unsigned int WindowDataLayer<Dtype>::PrefetchRand() {
220 CHECK(prefetch_rng_);
221 caffe::rng_t* prefetch_rng =
222 static_cast<caffe::rng_t*>(prefetch_rng_->generator());
223 return (*prefetch_rng)();
224}
225
226// This function is called on prefetch thread
227template <typename Dtype>

Callers

nothing calls this directly

Calls 1

generatorMethod · 0.80

Tested by

no test coverage detected