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

Function DifferenceTest

tensorflow/core/lib/random/simple_philox_test.cc:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static void DifferenceTest(const char *names, SimplePhilox *gen1,
46 SimplePhilox *gen2) {
47 static const int kIters = 100;
48 bool different = false;
49 for (int i = 0; i < kIters; ++i) {
50 if (gen1->Rand32() != gen2->Rand32()) {
51 different = true;
52 break;
53 }
54 }
55 CHECK(different) << "different seeds but same output!";
56}
57
58TEST(SimplePhiloxTest, DifferenceTest) {
59 PhiloxRandom philox1(1, 1), philox2(17, 17);

Callers 1

TESTFunction · 0.85

Calls 1

Rand32Method · 0.80

Tested by

no test coverage detected