Compress - 9 vs 11#

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.

Files changed (1) hide show
  1. Compress9 → Compress11 +2 -4
Compress9 → Compress11 RENAMED
@@ -1 +1 @@
1
1
  Selects slices from an input tensor along a given axis where condition evaluates to True for each axis index.
2
2
  In case axis is not provided, input is flattened before elements are selected.
3
3
  Compress behaves like numpy.compress: https://docs.scipy.org/doc/numpy/reference/generated/numpy.compress.html
4
4
  **Attributes**
5
5
  * **axis**:
6
6
  (Optional) Axis along which to take slices. If not specified, input
7
- is flattened before elements being selected. Negative value means
7
+ is flattened before elements being selected.
8
- counting dimensions from the back. Accepted range is [-r, r-1] where
9
- r = rank(input).
10
8
  **Inputs**
11
9
  * **input** (heterogeneous) - **T**:
12
10
  Tensor of rank r >= 1.
13
11
  * **condition** (heterogeneous) - **T1**:
14
12
  Rank 1 tensor of booleans to indicate which slices or data elements
15
- to be selected. Its length can be less than the input length along
13
+ to be selected. Its length can be less than the input length alone
16
14
  the axis or the flattened input size if axis is not specified. In
17
15
  such cases data slices or elements exceeding the condition length
18
16
  are discarded.
19
17
  **Outputs**
20
18
  * **output** (heterogeneous) - **T**:
21
19
  Tensor of rank r if axis is specified. Otherwise output is a Tensor
22
20
  of rank 1.
23
21
  **Type Constraints**
24
22
  * **T** in (
25
23
  tensor(bool),
26
24
  tensor(complex128),
27
25
  tensor(complex64),
28
26
  tensor(double),
29
27
  tensor(float),
30
28
  tensor(float16),
31
29
  tensor(int16),
32
30
  tensor(int32),
33
31
  tensor(int64),
34
32
  tensor(int8),
35
33
  tensor(string),
36
34
  tensor(uint16),
37
35
  tensor(uint32),
38
36
  tensor(uint64),
39
37
  tensor(uint8)
40
38
  ):
41
39
  Constrain input and output types to all tensor types.
42
40
  * **T1** in (
43
41
  tensor(bool)
44
42
  ):
45
43
  Constrain to boolean tensors.