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

Function FillRandom

tensorflow/lite/kernels/internal/test_util.cc:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void FillRandom(std::vector<float>* vec, float min, float max) {
107 std::uniform_real_distribution<float> dist(min, max);
108 auto gen = std::bind(dist, RandomEngine());
109 std::generate(std::begin(*vec), std::end(*vec), gen);
110}
111
112} // namespace tflite

Callers

nothing calls this directly

Calls 1

generateFunction · 0.50

Tested by

no test coverage detected