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

Function GenRandomFloat

tensorflow/core/util/sorter_test.cc:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void GenRandomFloat(int N, std::vector<float>* vec) {
49 random::PhiloxRandom philox(392, 44);
50 random::SimplePhilox rnd(&philox);
51 vec->resize(N);
52 for (int i = 0; i < N; ++i) {
53 (*vec)[i] = rnd.RandFloat();
54 }
55}
56
57TEST(SorterQSort, UInt64Less) {
58 thread::ThreadPool threads(Env::Default(), "test", 16);

Callers 1

TESTFunction · 0.85

Calls 2

RandFloatMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected