ReduceProd - 1 vs 18¶
Next section compares an older to a newer version of the same operator after both definition are converted into markdown text. Green means an addition to the newer version, red means a deletion. Anything else is unchanged.
- ReduceProd1 → ReduceProd18 +16 -11
ReduceProd1 → ReduceProd18
RENAMED
@@ -1 +1 @@
|
|
1
|
-
Computes the product of the input tensor's
|
1
|
+
Computes the product of the input tensor's elements along the provided axes. The resulting
|
2
|
-
tensor has the same rank as the input if keepdims equals 1. If keepdims
|
2
|
+
tensor has the same rank as the input if keepdims equals 1. If keepdims equals 0, then
|
3
|
-
the
|
3
|
+
the resulting tensor has the reduced dimension pruned. Input tensors of rank zero are
|
4
4
|
valid. Reduction over an empty set of values yields 1.
|
5
|
-
The above behavior is similar to numpy, with the exception that numpy defaults keepdims
|
5
|
+
The above behavior is similar to numpy, with the exception that numpy defaults keepdims
|
6
|
-
False instead of True.
|
6
|
+
to False instead of True.
|
7
7
|
### Attributes
|
8
|
-
|
9
|
-
* **axes - INTS** :
|
10
|
-
|
11
|
-
A list of integers, along which to reduce. The default is to reduce over all the dimensions of the input tensor.
|
12
8
|
* **keepdims - INT** (default is '1'):
|
13
9
|
Keep the reduced dimension or not, default 1 means keep reduced dimension.
|
10
|
+
* **noop_with_empty_axes - INT** (default is '0'):
|
11
|
+
|
12
|
+
Defines behavior if 'axes' is empty. Default behavior with 'false' is to reduce all axes. When axes is empty and this attribute is set to true, input tensor will not be reduced,and the output tensor would be equivalent to input tensor.
|
13
|
+
|
14
14
|
### Inputs
|
15
|
+
|
16
|
+
Between 1 and 2 inputs.
|
15
17
|
- **data** (heterogeneous) - **T**:
|
16
18
|
An input tensor.
|
19
|
+
- **axes** (optional, heterogeneous) - **tensor(int64)**:
|
20
|
+
|
21
|
+
Optional input list of integers, along which to reduce. The default is to reduce over all the dimensions of the input tensor if 'noop_with_empty_axes' is false, else act as an Identity op when 'noop_with_empty_axes' is true. Accepted range is [-r, r-1] where r = rank(data).
|
17
22
|
### Outputs
|
18
23
|
- **reduced** (heterogeneous) - **T**:
|
19
24
|
Reduced output tensor.
|
20
25
|
### Type Constraints
|
21
|
-
* **T** in ( tensor(double), tensor(float), tensor(float16), tensor(int32), tensor(int64), tensor(uint32), tensor(uint64) ):
|
26
|
+
* **T** in ( tensor(bfloat16), tensor(double), tensor(float), tensor(float16), tensor(int32), tensor(int64), tensor(uint32), tensor(uint64) ):
|
22
|
-
Constrain input and output types to
|
27
|
+
Constrain input and output types to numeric tensors.
|