@@ -394,6 +394,45 @@ struct GlobalPool2DParam : public dmlc::Parameter<GlobalPool2DParam> {
394
394
}
395
395
};
396
396
397
+
398
+ struct AdaptiveMaxPool2DParam : public dmlc ::Parameter<AdaptiveMaxPool2DParam> {
399
+ int out_height;
400
+ int out_width;
401
+ std::string layout;
402
+
403
+ DMLC_DECLARE_PARAMETER (AdaptiveMaxPool2DParam) {
404
+ DMLC_DECLARE_FIELD (out_height)
405
+ .describe (" Output height" );
406
+ DMLC_DECLARE_FIELD (out_width)
407
+ .describe (" Output width" );
408
+ DMLC_DECLARE_FIELD (layout).set_default (" NCHW" )
409
+ .describe (" Dimension ordering of data and weight. Can be 'NCHW', 'NHWC', etc."
410
+ " 'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
411
+ " dimensions respectively. Convolution is applied on the 'H' and"
412
+ " 'W' dimensions." );
413
+ }
414
+ };
415
+
416
+
417
+ struct AdaptiveAvgPool2DParam : public dmlc ::Parameter<AdaptiveAvgPool2DParam> {
418
+ int out_height;
419
+ int out_width;
420
+ std::string layout;
421
+
422
+ DMLC_DECLARE_PARAMETER (AdaptiveAvgPool2DParam) {
423
+ DMLC_DECLARE_FIELD (out_height)
424
+ .describe (" Output height" );
425
+ DMLC_DECLARE_FIELD (out_width)
426
+ .describe (" Output width" );
427
+ DMLC_DECLARE_FIELD (layout).set_default (" NCHW" )
428
+ .describe (" Dimension ordering of data and weight. Can be 'NCHW', 'NHWC', etc."
429
+ " 'N', 'C', 'H', 'W' stands for batch, channel, height, and width"
430
+ " dimensions respectively. Convolution is applied on the 'H' and"
431
+ " 'W' dimensions." );
432
+ }
433
+ };
434
+
435
+
397
436
struct UpSamplingParam : public dmlc ::Parameter<UpSamplingParam> {
398
437
int scale;
399
438
std::string layout;
0 commit comments