class_docstr: Pooling layer (global pooling) (specification key: `pooling`).
  
  Args:
      reduction ('concat' | 'max' | 'mean' | 'product' | 'sum'): Pooling type
          (<span style="color:#C00000"><b>required</b></span>).
      name (string): Layer name
          (<span style="color:#00C000"><b>default</b></span>: internally chosen).
      input_spec (specification): <span style="color:#00C000"><b>internal use</b></span>.
class_docstr_tok: ["Pooling","layer","(","global","pooling",")","(","specification","key",":","`","pooling","`",")",".","Args",":","reduction","(","'concat","'","|","'max","'","|","'mean","'","|","'product","'","|","'sum","'",")",":","Pooling","type","(","<","span","style=","''","color",":","#","C00000","''",">","<","b",">","required","<","\/b",">","<","\/span",">",")",".","name","(","string",")",":","Layer","name","(","<","span","style=","''","color",":","#","00C000","''",">","<","b",">","default","<","\/b",">","<","\/span",">",":","internally","chosen",")",".","input_spec","(","specification",")",":","<","span","style=","''","color",":","#","00C000","''",">","<","b",">","internal","use","<","\/b",">","<","\/span",">","."]
code: def __init__(self, *, reduction, name=None, input_spec=None):
      if reduction not in ("concat", "max", "mean", "product", "sum"):
          raise TensorforceError.value(
              name="pooling", argument="reduction", value=reduction
          )
      self.reduction = reduction
  
      super().__init__(name=name, input_spec=input_spec)
  
      self.architecture_kwargs["reduction"] = reduction
  
imports: import numpy
  import tensorflow
  from tensorforce import TensorforceError
  from tensorforce.core import TensorSpec, tf_function, tf_util
  from tensorforce.core.layers import Layer
label_desc: Use image node_id 1 to create a new Pooling object from inherited base classes: Layer with example: obj = Pooling()