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

Method FillRandom

tensorflow/compiler/xla/array.cc:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21// the stddev parameter as the standard deviation value.
22template <>
23void Array<complex64>::FillRandom(const complex64& stddev, const double mean,
24 const int seed) {
25 std::mt19937 g(seed);
26 std::normal_distribution<double> distribution(mean, std::real(stddev));
27 for (int64 i = 0; i < num_elements(); ++i) {
28 values_[i] = complex64(distribution(g), distribution(g));
29 }
30}
31
32} // namespace xla

Callers 15

GenerateRandomMatrixMethod · 0.45
GenerateLargeSizeInputFunction · 0.45
XLA_TEST_PFunction · 0.45
XLA_TEST_PFunction · 0.45
RunR2ToR1PredTestMethod · 0.45
RunR2ToR0TestMethod · 0.45
RunR2ToR1TestMethod · 0.45
XLA_TEST_FFunction · 0.45
XLA_TEST_PFunction · 0.45
XLA_TEST_FFunction · 0.45
XLA_TEST_PFunction · 0.45

Calls 1

realFunction · 0.85

Tested by 15

GenerateRandomMatrixMethod · 0.36
GenerateLargeSizeInputFunction · 0.36
XLA_TEST_PFunction · 0.36
XLA_TEST_PFunction · 0.36
RunR2ToR1PredTestMethod · 0.36
RunR2ToR0TestMethod · 0.36
RunR2ToR1TestMethod · 0.36
XLA_TEST_FFunction · 0.36
XLA_TEST_PFunction · 0.36
XLA_TEST_FFunction · 0.36
XLA_TEST_PFunction · 0.36