revert change

pull/3815/head
cyy 6 years ago
parent d3b3e8382f
commit c71701b3c3
  1. 4
      src/convolutional_layer.c

@ -607,6 +607,8 @@ void test_convolutional_layer()
void resize_convolutional_layer(convolutional_layer *l, int w, int h)
{
int total_batch = l->batch*l->steps;
int old_w = l->w;
int old_h = l->h;
l->w = w;
l->h = h;
int out_w = convolutional_out_width(*l);
@ -630,8 +632,6 @@ void resize_convolutional_layer(convolutional_layer *l, int w, int h)
}
#ifdef GPU
int old_w = l->w;
int old_h = l->h;
if (old_w < w || old_h < h) {
cuda_free(l->delta_gpu);
cuda_free(l->output_gpu);

Loading…
Cancel
Save