GlobalMaxPool2d

class dragon.vm.tensorlayer.layers.GlobalMaxPool2d(
  data_format='channels_first',
  name=None
)[source]

The global max 2d 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'}) – The optional data format.
  • name (str, optional) – The optional layer name.