revert change

This commit is contained in:
cyy 2019-09-11 23:44:58 +08:00
parent d3b3e8382f
commit c71701b3c3
1 changed files with 2 additions and 2 deletions

View File

@ -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);