Skip to content

Commit

Permalink
region_layer: Populate out_h/w/c fileds for consitency (AlexeyAB#7783)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmennius authored Jun 11, 2021
1 parent 7ff80b1 commit 894aada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/region_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ region_layer make_region_layer(int batch, int w, int h, int n, int classes, int
l.batch = batch;
l.h = h;
l.w = w;
l.c = n*(classes + coords + 1);
l.out_w = l.w;
l.out_h = l.h;
l.out_c = l.c;
l.classes = classes;
l.coords = coords;
l.cost = (float*)xcalloc(1, sizeof(float));
Expand Down

0 comments on commit 894aada

Please sign in to comment.