mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Minor fix
This commit is contained in:
@ -48,17 +48,17 @@ layer make_crnn_layer(int batch, int h, int w, int c, int hidden_filters, int ou
|
||||
|
||||
l.state = (float*)calloc(l.hidden * l.batch * (l.steps + 1), sizeof(float));
|
||||
|
||||
l.input_layer = (layer*)malloc(sizeof(layer));
|
||||
l.input_layer = (layer*)calloc(1, sizeof(layer));
|
||||
*(l.input_layer) = make_convolutional_layer(batch, steps, h, w, c, hidden_filters, groups, size, stride, pad, activation, batch_normalize, 0, xnor, 0, 0, 0);
|
||||
l.input_layer->batch = batch;
|
||||
if (l.workspace_size < l.input_layer->workspace_size) l.workspace_size = l.input_layer->workspace_size;
|
||||
|
||||
l.self_layer = (layer*)malloc(sizeof(layer));
|
||||
l.self_layer = (layer*)calloc(1, sizeof(layer));
|
||||
*(l.self_layer) = make_convolutional_layer(batch, steps, h, w, hidden_filters, hidden_filters, groups, size, stride, pad, activation, batch_normalize, 0, xnor, 0, 0, 0);
|
||||
l.self_layer->batch = batch;
|
||||
if (l.workspace_size < l.self_layer->workspace_size) l.workspace_size = l.self_layer->workspace_size;
|
||||
|
||||
l.output_layer = (layer*)malloc(sizeof(layer));
|
||||
l.output_layer = (layer*)calloc(1, sizeof(layer));
|
||||
*(l.output_layer) = make_convolutional_layer(batch, steps, h, w, hidden_filters, output_filters, groups, size, stride, pad, activation, batch_normalize, 0, xnor, 0, 0, 0);
|
||||
l.output_layer->batch = batch;
|
||||
if (l.workspace_size < l.output_layer->workspace_size) l.workspace_size = l.output_layer->workspace_size;
|
||||
|
Reference in New Issue
Block a user