ReduceProd

功能

计算输入张量的元素沿所提供的轴的乘积。如果keepdim等于1,得到的张量的秩与输入的相同。如果keepdim等于0,那么得到的张量就会被精简维数。

边界

【输入】

data:tensor(uint32), tensor(uint64), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16)

【输出】

reduced:tensor(uint32), tensor(uint64), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16)

【属性】

axes: list of ints

keepdims: int,默认值:1

支持的ONNX版本

Opset v8/v9/v10/v11/v12/v13