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

Method RandomShuffle

tensorflow/core/kernels/sdca_internal.cc:311–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void Examples::RandomShuffle() {
312 std::iota(sampled_index_.begin(), sampled_index_.end(), 0);
313
314 std::random_device rd;
315 std::mt19937 rng(rd());
316 std::shuffle(sampled_index_.begin(), sampled_index_.end(), rng);
317}
318
319// TODO(sibyl-Aix6ihai): Refactor/shorten this function.
320Status Examples::Initialize(OpKernelContext* const context,

Callers 1

DoComputeFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected