ReduceSum - 1 vs 13#
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.
- ReduceSum1 → ReduceSum13 +5 -16
ReduceSum1 → ReduceSum13
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Computes the sum of the input tensor's element 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 equal 0, then
|
3
|
-
the
|
3
|
+
the resulted tensor have the reduced dimension pruned.
|
4
4
|
The above behavior is similar to numpy, with the exception that numpy defaults keepdims to
|
5
5
|
False instead of True.
|
6
6
|
**Attributes**
|
7
|
+
* **axes**:
|
8
|
+
A list of integers, along which to reduce. The default is to reduce
|
9
|
+
over all the dimensions of the input tensor.
|
7
10
|
* **keepdims**:
|
8
11
|
Keep the reduced dimension or not, default 1 means keep reduced
|
9
12
|
dimension.
|
10
|
-
* **noop_with_empty_axes**:
|
11
|
-
Defines behaviour if 'axes' is empty. Default behaviour with 'false'
|
12
|
-
is to reduce all axes. When axes is empty and this attribute is set
|
13
|
-
to true, input tensor will not be reduced,and the output tensor
|
14
|
-
would be equivalent to input tensor.
|
15
13
|
**Inputs**
|
16
|
-
Between 1 and 2 inputs.
|
17
|
-
|
18
14
|
* **data** (heterogeneous) - **T**:
|
19
15
|
An input tensor.
|
20
|
-
* **axes** (optional, heterogeneous) - **tensor(int64)**:
|
21
|
-
Optional input list of integers, along which to reduce. The default
|
22
|
-
is to reduce over all the dimensions of the input tensor if
|
23
|
-
'noop_with_empty_axes' is false, else act as an Identity op when
|
24
|
-
'noop_with_empty_axes' is true. Accepted range is [-r, r-1] where r
|
25
|
-
= rank(data).
|
26
16
|
**Outputs**
|
27
17
|
* **reduced** (heterogeneous) - **T**:
|
28
18
|
Reduced output tensor.
|
29
19
|
**Type Constraints**
|
30
20
|
* **T** in (
|
31
|
-
tensor(bfloat16),
|
32
21
|
tensor(double),
|
33
22
|
tensor(float),
|
34
23
|
tensor(float16),
|
35
24
|
tensor(int32),
|
36
25
|
tensor(int64),
|
37
26
|
tensor(uint32),
|
38
27
|
tensor(uint64)
|
39
28
|
):
|
40
29
|
Constrain input and output types to high-precision numeric tensors.
|