ReduceSum - 11 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.
- ReduceSum11 → ReduceSum13 +6 -16
ReduceSum11 → 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. Accepted range is [-r,
|
10
|
+
r-1] where r = rank(data).
|
7
11
|
* **keepdims**:
|
8
12
|
Keep the reduced dimension or not, default 1 means keep reduced
|
9
13
|
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
14
|
**Inputs**
|
16
|
-
Between 1 and 2 inputs.
|
17
|
-
|
18
15
|
* **data** (heterogeneous) - **T**:
|
19
16
|
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
17
|
**Outputs**
|
27
18
|
* **reduced** (heterogeneous) - **T**:
|
28
19
|
Reduced output tensor.
|
29
20
|
**Type Constraints**
|
30
21
|
* **T** in (
|
31
|
-
tensor(bfloat16),
|
32
22
|
tensor(double),
|
33
23
|
tensor(float),
|
34
24
|
tensor(float16),
|
35
25
|
tensor(int32),
|
36
26
|
tensor(int64),
|
37
27
|
tensor(uint32),
|
38
28
|
tensor(uint64)
|
39
29
|
):
|
40
30
|
Constrain input and output types to high-precision numeric tensors.
|