ReduceProd

Description

Computes the product of the input tensor's elements along the provided axes.

If keepdim is 1, the rank of the obtained tensor is the same as that of the input tensor. If keepdim is set to 0, the number of dimensions of the obtained tensor is reduced.

Input

One input:

data: tensor of type float, float16, or int64.

Output

One output:

reduced: tensor of type float, float16, or int64.

Attribute

axes: The data type is an int list. Meaning: calculation axis. Value range: [-r, r-1], where r is the number of dimensions of the input data x.

keepdims: int. Defaults to 1.

ONNX Opset Support

Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17