Skip to content

Commit 9aec595

Browse files
committed
Add AVE_TF back as alias for backwards compatibility support
1 parent 15b3f42 commit 9aec595

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/caffe/proto/caffe.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,10 +1921,12 @@ message PermuteParameter {
19211921

19221922
message PoolingParameter {
19231923
enum PoolMethod {
1924+
option allow_alias = true;
19241925
MAX = 0;
19251926
AVE = 1;
19261927
STOCHASTIC = 2;
19271928
AVE_EXC_PAD=3; //CUSTOMIZATION
1929+
AVE_TF=3; //DEPRECATED CUSTOMIZATION
19281930
}
19291931
optional PoolMethod pool = 1 [default = MAX]; // The pooling method
19301932
// Pad, kernel size, and stride are all given as a single value for equal
@@ -2479,10 +2481,12 @@ message YoloV2LossParameter {
24792481

24802482
message SPPParameter {
24812483
enum PoolMethod {
2484+
option allow_alias = true;
24822485
MAX = 0;
24832486
AVE = 1;
24842487
STOCHASTIC = 2;
24852488
AVE_EXC_PAD=3; //CUSTOMIZATION
2489+
AVE_TF=3; //DEPRECATED CUSTOMIZATION
24862490
}
24872491
optional uint32 pyramid_height = 1;
24882492
optional PoolMethod pool = 2 [default = MAX]; // The pooling method
@@ -2605,10 +2609,12 @@ message V0LayerParameter {
26052609
optional uint32 group = 9 [default = 1]; // The group size for group conv
26062610
optional uint32 stride = 10 [default = 1]; // The stride
26072611
enum PoolMethod {
2612+
option allow_alias = true;
26082613
MAX = 0;
26092614
AVE = 1;
26102615
STOCHASTIC = 2;
26112616
AVE_EXC_PAD=3; //CUSTOMIZATION
2617+
AVE_TF=3; //DEPRECATED CUSTOMIZATION
26122618
}
26132619
optional PoolMethod pool = 11 [default = MAX]; // The pooling method
26142620
optional float dropout_ratio = 12 [default = 0.5]; // dropout ratio

0 commit comments

Comments
 (0)