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

Function frand

common/train.cpp:165–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165float frand() {
166 return (float)rand()/((float)(RAND_MAX) + 1.0f);
167}
168
169float frand_normal(struct random_normal_distribution * rnd) {
170 return fclamp(rnd->rd(rnd->gen), rnd->min, rnd->max);

Callers 2

randomize_tensorFunction · 0.50
get_example_targetsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected