Skip to content

Commit 6328d7f

Browse files
committed
allow deconv pad_l/r/b/t to be negative
1 parent 31c3c62 commit 6328d7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/caffe/proto/caffe.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,10 @@ message ConvolutionParameter {
13501350
optional uint32 pad_w = 10 [default = 0]; // The padding width (2D only)
13511351
optional uint32 pad_type = 19 [default = 0]; //CUSTOMIZATION, =0 for original Caffe padding, =1 for TensorFLow "SAME" padding
13521352
//DEPRECATED. Should specify pad_l/r/t/b instead.
1353-
optional uint32 pad_l = 26 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1
1354-
optional uint32 pad_r = 27 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1
1355-
optional uint32 pad_t = 28 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1
1356-
optional uint32 pad_b = 29 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1
1353+
optional int32 pad_l = 26 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1; could be negative for deconv
1354+
optional int32 pad_r = 27 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1; could be negative for deconv
1355+
optional int32 pad_t = 28 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1; could be negative for deconv
1356+
optional int32 pad_b = 29 [default = 0]; //CUSTOMIZATION, only work when pad_type is not set to 1; could be negative for deconv
13571357
optional uint32 kernel_h = 11; // The kernel height (2D only)
13581358
optional uint32 kernel_w = 12; // The kernel width (2D only)
13591359
optional uint32 stride_h = 13; // The stride height (2D only)

0 commit comments

Comments
 (0)