Pooling

Input

x:
  • Required: yes
  • Type: float16
  • Description: pools input x and outputs y.
  • Restrictions: none

Attribute

  • pool:
    • Required: no
    • Type: int
    • Description: pooling type
      • 0 (default): MAX
      • 1: AVE
    • Restriction: either 0 or 1
  • kernel_size:
    • Required: no
    • Type: int
    • Description: kernel size
    • Restriction:
      If global_pooling==False, pool==1, x_w (after padding) > kernel_w:
      1. Filter_h*filter_w*32+feature_w*(31*stride_h+filter_w)<=32768
      2. Value range of kernel_size(kernel_h, kernel_w): [1, 255]
  • kernel_h:
    • Required: no
    • Type: int
    • Description: kernel height (kernel_size and kernel_h/kernel_w are mutually exclusive if global_pooling==False.)
    • Restriction:
      If global_pooling==False, pool==1, x_w (after padding) > kernel_w:
      1. Filter_h*filter_w*32+feature_w*(31*stride_h+filter_w)<=32768
      2. Value range of kernel_size(kernel_h, kernel_w): [1, 255]
  • kernel_w:
    • Required: no
    • Type: int
    • Description: kernel width
    • Restriction:
      If global_pooling==False, pool==1, x_w (after padding) > kernel_w:
      1. Filter_h*filter_w*32+feature_w*(31*stride_h+filter_w)<=32768
      2. Value range of kernel_size(kernel_h, kernel_w): [1, 255]
  • stride:
    • Required: no
    • Type: int
    • Description: stride size (default = 1). stride_h and stride_w take precedence over stride.
    • Restriction: Must be in the range 1–63; stride <= 2 * kernel_size
  • stride_h:
    • Required: no
    • Type: int
    • Description: stride height (default = 1)
    • Restriction: Must be in the range 1–63; stride <= 2 * kernel_size
  • stride_w:
    • Required: no
    • Type: int
    • Description: stride width (default = 1)
    • Restriction: Must be in the range 1–63; stride <= 2 * kernel_size
  • pad:
    • Required: no
    • Type: int
    • Description: padding size (default = 0). pad_h takes precedence over pad.
    • Restriction: pad < kernel
  • pad_h:
    • Required: no
    • Type: int
    • Description: padding height (default = 0)
    • Restriction: pad < kernel
  • pad_w:
    • Required: no
    • Type: int
    • Description: padding width (default = 0)
    • Restriction: pad < kernel
  • global_pooling:
    • Required: no
    • Type: int
    • Description: global pooling switch (default = false)
    • Restriction: either True or False
  • round_mode:
    • Required: no
    • Type: int
    • Description: pooling method
      • 0 (default): DOMI_POOLING_CEIL
      • 1: DOMI_POOLING_FLOOR
    • Restriction: either 0 or 1

Output

y:
  • Required: yes
  • Type: float16
  • Description: pools input x and outputs y.
  • Restrictions: none