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

Method FillWithMultiples

tensorflow/compiler/xla/array.h:285–289  ·  view source on GitHub ↗

Fills the array with the sequence i*multiplier for i=0,1,...

Source from the content-addressed store, hash-verified

283
284 // Fills the array with the sequence i*multiplier for i=0,1,...
285 void FillWithMultiples(const T& multiplier) {
286 for (int64 i = 0; i < num_elements(); ++i) {
287 values_[i] = static_cast<T>(i) * multiplier;
288 }
289 }
290
291 // Fills the array with random normal variables with the specified mean.
292 void FillRandom(const T& stddev, const double mean = 0.0,

Callers 7

TEST_FFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
XLA_TEST_FFunction · 0.80
TEST_FFunction · 0.80
RunTestMethod · 0.80
XLA_TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 7

TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
XLA_TEST_FFunction · 0.64
TEST_FFunction · 0.64
RunTestMethod · 0.64
XLA_TEST_FFunction · 0.64