MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / frand_uniform

Function frand_uniform

common/train.cpp:173–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173float frand_uniform(struct random_uniform_distribution * rnd) {
174 return rnd->rd(rnd->gen);
175}
176
177int clamp(const int v, const int min, const int max) {
178 return ((v < min) ? (min) : (v > max) ? (max) : v);

Callers 1

randomize_tensor_uniformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected