net.pool1 = caffe.layers.Pooling(net.myconv, pool=caffe.params.Pooling.MAX, kernel_size=2, stride=2) 输出: layer { name: "pool1" type: "Pooling" bottom: "myconv" top: "pool1" pooling_param { pool: MAX kernel_size: 2 stride: 2 } }