Skip to content

Commit

Permalink
Minor fix in cost_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Jun 4, 2019
1 parent 1f6f2e1 commit abba310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cost_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ cost_layer make_cost_layer(int batch, int inputs, COST_TYPE cost_type, float sca
l.forward_gpu = forward_cost_layer_gpu;
l.backward_gpu = backward_cost_layer_gpu;

l.delta_gpu = cuda_make_array(l.output, inputs*batch);
l.output_gpu = cuda_make_array(l.delta, inputs*batch);
l.delta_gpu = cuda_make_array(l.delta, inputs*batch);
l.output_gpu = cuda_make_array(l.output, inputs*batch);
#endif
return l;
}
Expand Down

0 comments on commit abba310

Please sign in to comment.