Just used spaces for indents instead of Tabs

This commit is contained in:
AlexeyAB
2018-07-10 23:29:15 +03:00
parent 81d4688b12
commit cfc5fedbb6
31 changed files with 4344 additions and 4336 deletions

View File

@ -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
}