mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed random values
This commit is contained in:
@ -348,7 +348,7 @@ float train_network_batch(network net, data d, int n)
|
||||
int batch = 2;
|
||||
for(i = 0; i < n; ++i){
|
||||
for(j = 0; j < batch; ++j){
|
||||
int index = rand()%d.X.rows;
|
||||
int index = random_gen()%d.X.rows;
|
||||
state.input = d.X.vals[index];
|
||||
state.truth = d.y.vals[index];
|
||||
forward_network(net, state);
|
||||
|
Reference in New Issue
Block a user