Minor speedup on CPU

This commit is contained in:
AlexeyAB
2019-01-26 19:12:46 +03:00
parent 630f441e08
commit 090d934c0f
6 changed files with 168 additions and 37 deletions

View File

@ -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();