Added fast random functions

This commit is contained in:
AlexeyAB 2020-01-04 15:47:15 +03:00
parent 75a327856b
commit 3c134dc033
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ void forward_dropout_layer_gpu(dropout_layer l, network_state state)
for (b = 0; b < l.batch; b++) {
for (k = 0; k < l.c; k++) {
for (i = 0; i < max_blocks_per_channel; i++) {
float rnd = random_float();
printf(" rnd = %f \n", rnd);
float rnd = random_float_fast();
//printf(" rnd = %f \n", rnd);
//int rn = rand_int_fast(1, 7);
//printf(" rnd = %d \n", rn);
if (rnd < prob_place_block) {