AlexeyAB
2018-02-21 4b0be8c7011c9d39c102d64147af9a181db76179
src/convolutional_layer.c
@@ -359,6 +359,8 @@
void resize_convolutional_layer(convolutional_layer *l, int w, int h)
{
   int old_w = l->w;
   int old_h = l->h;
    l->w = w;
    l->h = h;
    int out_w = convolutional_out_width(*l);
@@ -378,6 +380,7 @@
    }
#ifdef GPU
   if (old_w < w || old_h < h) {
    cuda_free(l->delta_gpu);
    cuda_free(l->output_gpu);
@@ -391,6 +394,7 @@
        l->x_gpu = cuda_make_array(l->output, l->batch*l->outputs);
        l->x_norm_gpu = cuda_make_array(l->output, l->batch*l->outputs);
    }
   }
#ifdef CUDNN
    cudnn_convolutional_setup(l);
#endif