示例#1
0
 def test_pooling_layer(self):
     maxpool = layer.img_pool(input=conv,
                              pool_size=2,
                              num_channels=16,
                              padding=1,
                              pool_type=pooling.Max())
     spp = layer.spp(input=conv,
                     pyramid_height=2,
                     num_channels=16,
                     pool_type=pooling.Max())
     maxout = layer.maxout(input=conv, num_channels=16, groups=4)
     print layer.parse_network(maxpool, spp, maxout)
示例#2
0
 def test_pooling_layer(self):
     maxpool = layer.img_pool(
         input=conv,
         pool_size=2,
         num_channels=16,
         padding=1,
         pool_type=pooling.Max())
     spp = layer.spp(input=conv,
                     pyramid_height=2,
                     num_channels=16,
                     pool_type=pooling.Max())
     maxout = layer.maxout(input=conv, num_channels=16, groups=4)
     print layer.parse_network([maxpool, spp, maxout])