mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Minor speedup on CPU
This commit is contained in:
@ -201,7 +201,7 @@ void forward_network(network net, network_state state)
|
||||
for(i = 0; i < net.n; ++i){
|
||||
state.index = i;
|
||||
layer l = net.layers[i];
|
||||
if(l.delta){
|
||||
if(l.delta && state.train){
|
||||
scal_cpu(l.outputs * l.batch, 0, l.delta, 1);
|
||||
}
|
||||
//double time = get_time_point();
|
||||
|
Reference in New Issue
Block a user