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

Function GenRandomUInt64

tensorflow/core/util/sorter_test.cc:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39void GenRandomUInt64(int N, std::vector<uint64>* vec) {
40 random::PhiloxRandom philox(288, 19);
41 random::SimplePhilox rnd(&philox);
42 vec->resize(N);
43 for (int i = 0; i < N; ++i) {
44 (*vec)[i] = rnd.Rand64();
45 }
46}
47
48void GenRandomFloat(int N, std::vector<float>* vec) {
49 random::PhiloxRandom philox(392, 44);

Callers 1

TESTFunction · 0.85

Calls 2

Rand64Method · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected