Reduction

Input

x:
  • Required: yes
  • Type: float16, float32
  • Description: -
  • Restriction: Must be of type float16.

Attribute

  • operation:
    • Required: no
    • Type: int
    • Description: default = 1
      1. : SUM
      2. : ASUM
      3. : SUMSQ
      4. : MEAN
    • Restriction: The value is user-defined. Must be in the range [1, 4].
  • axis:
    • Required: no
    • Type: int
    • Description: the first axis to reduce (default = 0)
    • Restriction: Must be in the range [–rank(x), rank(x)).
  • coeff:
    • Required: no
    • Type: float
    • Description: coefficient for output (default = 1.0)
    • Restriction: The value is user-defined.

Output

  • y:
    • Required: yes
    • Type: float16, float32
    • Description: -
    • Restriction: Must be of type float16.