shuffle vector

shared_ptr<Caffe::RNG> prefetch_rng_;
    const unsigned int prefetch_rng_seed = caffe_rng_rand();
    prefetch_rng_.reset(new Caffe::RNG(prefetch_rng_seed));
	LOG(INFO) << "Declare prefetch_rng_";
  	caffe::rng_t* prefetch_rng =
      static_cast<caffe::rng_t*>(prefetch_rng_->generator());
      LOG(INFO) << "prefetch_rng generated";
    shuffle(lines_.begin(), lines_.end(), prefetch_rng);


你可能感兴趣的:(shuffle vector)