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

Method ShuffleImages

src/caffe/layers/image_data_layer.cpp:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template <typename Dtype>
102void ImageDataLayer<Dtype>::ShuffleImages() {
103 caffe::rng_t* prefetch_rng =
104 static_cast<caffe::rng_t*>(prefetch_rng_->generator());
105 shuffle(lines_.begin(), lines_.end(), prefetch_rng);
106}
107
108// This function is called on prefetch thread
109template <typename Dtype>

Callers

nothing calls this directly

Calls 4

shuffleFunction · 0.85
generatorMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected