Skip to content

Commit

Permalink
[operator] prototype/pooling: code review and fix typo (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhj authored May 14, 2021
1 parent adb37e7 commit 0938e25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/operator/prototype/pooling.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ static int infer_shape(ir_node_t* node)

pool_param->kernel_h = input_h;
pool_param->kernel_w = input_w;
pool_param->pad_h0 = pool_param->pad_h1 = pool_param->pad_w0 = pool_param->pad_w1 = 0;
pool_param->stride_h = pool_param->stride_w = 1;

output_h = 1;
Expand Down Expand Up @@ -139,11 +138,11 @@ static int init_op(ir_op_t* op)
pool_param->pad_h0 = 0;
pool_param->pad_h1 = 0;
pool_param->pad_w0 = 0;
pool_param->pad_h1 = 0;
pool_param->pad_w1 = 0;
pool_param->pad_h0_org = 0;
pool_param->pad_h1_org = 0;
pool_param->pad_w0_org = 0;
pool_param->pad_h1_org = 0;
pool_param->pad_w1_org = 0;
pool_param->caffe_flavor = 0;
pool_param->funct = NULL;

Expand Down

0 comments on commit 0938e25

Please sign in to comment.