mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Just used spaces for indents instead of Tabs
This commit is contained in:
@ -38,20 +38,20 @@ layer make_shortcut_layer(int batch, int index, int w, int h, int c, int w2, int
|
||||
|
||||
void resize_shortcut_layer(layer *l, int w, int h)
|
||||
{
|
||||
//assert(l->w == l->out_w);
|
||||
//assert(l->h == l->out_h);
|
||||
l->w = l->out_w = w;
|
||||
l->h = l->out_h = h;
|
||||
l->outputs = w*h*l->out_c;
|
||||
l->inputs = l->outputs;
|
||||
l->delta = realloc(l->delta, l->outputs*l->batch * sizeof(float));
|
||||
l->output = realloc(l->output, l->outputs*l->batch * sizeof(float));
|
||||
//assert(l->w == l->out_w);
|
||||
//assert(l->h == l->out_h);
|
||||
l->w = l->out_w = w;
|
||||
l->h = l->out_h = h;
|
||||
l->outputs = w*h*l->out_c;
|
||||
l->inputs = l->outputs;
|
||||
l->delta = realloc(l->delta, l->outputs*l->batch * sizeof(float));
|
||||
l->output = realloc(l->output, l->outputs*l->batch * sizeof(float));
|
||||
|
||||
#ifdef GPU
|
||||
cuda_free(l->output_gpu);
|
||||
cuda_free(l->delta_gpu);
|
||||
l->output_gpu = cuda_make_array(l->output, l->outputs*l->batch);
|
||||
l->delta_gpu = cuda_make_array(l->delta, l->outputs*l->batch);
|
||||
cuda_free(l->output_gpu);
|
||||
cuda_free(l->delta_gpu);
|
||||
l->output_gpu = cuda_make_array(l->output, l->outputs*l->batch);
|
||||
l->delta_gpu = cuda_make_array(l->delta, l->outputs*l->batch);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user