MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Reset

Method Reset

tensorflow/core/kernels/data/random_seed_ops.cc:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void RandomSeedGenerator::Reset() {
57 mutex_lock l(mu_);
58 // Reset the generators based on the current seeds.
59 parent_generator_ = random::PhiloxRandom(seed_, seed2_);
60 generator_ =
61 random::SingleSampleAdapter<random::PhiloxRandom>(&parent_generator_);
62 generator_.Skip(num_random_samples_);
63}
64
65void RandomSeedGenerator::Serialize(OpKernelContext* ctx) {
66 mutex_lock l(mu_);

Callers

nothing calls this directly

Calls 2

PhiloxRandomClass · 0.85
SkipMethod · 0.45

Tested by

no test coverage detected