class_docstr: lasagne.layers.GlobalPoolLayer(incoming,
  pool_function=theano.tensor.mean, **kwargs)
  
  Global pooling layer
  
  This layer pools globally across all trailing dimensions beyond the 2nd.
  
  Parameters
  ----------
  incoming : a :class:`Layer` instance or tuple
      The layer feeding into this layer, or the expected input shape.
  
  pool_function : callable
      the pooling function to use. This defaults to `theano.tensor.mean`
      (i.e. mean-pooling) and can be replaced by any other aggregation
      function.
  
  **kwargs
      Any additional keyword arguments are passed to the :class:`Layer`
      superclass.
class_docstr_tok: ["lasagne.layers.GlobalPoolLayer","(","incoming",",","pool_function=theano.tensor.mean",",","*","*","kwargs",")","Global","pooling","layer","This","layer","pools","globally","across","all","trailing","dimensions","beyond","the","2nd",".","Parameters","--","--","--","--","--","incoming",":","a",":","class",":","`","Layer","`","instance","or","tuple","The","layer","feeding","into","this","layer",",","or","the","expected","input","shape",".","pool_function",":","callable","the","pooling","function","to","use",".","This","defaults","to","`","theano.tensor.mean","`","(","i.e",".","mean-pooling",")","and","can","be","replaced","by","any","other","aggregation","function",".","*","*","kwargs","Any","additional","keyword","arguments","are","passed","to","the",":","class",":","`","Layer","`","superclass","."]
code: def __init__(self, incoming, pool_function=T.mean, **kwargs):
      super(GlobalPoolLayer, self).__init__(incoming, **kwargs)
      self.pool_function = pool_function
  
imports: import theano.tensor
  from .base import Layer
  from ..utils import as_tuple
label_desc: Use image node_id 1 to create a new GlobalPoolLayer object from inherited base classes: Layer with example: obj = GlobalPoolLayer(incoming, pool_function)