Dragon API Dragon v0.3.0 Python GlobalMaxPool2d¶ class dragon.vm.tensorlayer.layers.GlobalMaxPool2d( data_format='channels_first', name=None)[source]¶ 2d global max pooling layer. Examples: x = tl.layers.Input([None, 30, 100, 100]) y = tl.layers.GlobalMaxPool2d()(x) __init__¶ GlobalMaxPool2d.__init__( data_format='channels_first', name=None)[source]¶ Create a GlobalMaxPool2d layer. Parameters: data_format ({'channels_last', 'channels_first'}) – 'channels_first' or 'channels_last'. name (str, optional) – The layer name.