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

Function frand_normal

common/train.cpp:169–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169float frand_normal(struct random_normal_distribution * rnd) {
170 return fclamp(rnd->rd(rnd->gen), rnd->min, rnd->max);
171}
172
173float frand_uniform(struct random_uniform_distribution * rnd) {
174 return rnd->rd(rnd->gen);

Callers 1

randomize_tensor_normalFunction · 0.85

Calls 1

fclampFunction · 0.85

Tested by

no test coverage detected