Clip - 1 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.
- Clip1 → Clip11 +11 -10
Clip1 → Clip11
RENAMED
@@ -1 +1 @@
|
|
1
1
|
Clip operator limits the given input within an interval. The interval is
|
2
|
-
specified
|
2
|
+
specified with arguments 'min' and 'max'. They default to
|
3
|
-
numeric_limits::lowest() and numeric_limits::max()
|
3
|
+
numeric_limits::lowest() and numeric_limits::max() respectively.
|
4
|
+
|
5
|
+
**Attributes**
|
6
|
+
|
7
|
+
* **consumed_inputs**:
|
8
|
+
legacy optimization attribute.
|
9
|
+
* **max**:
|
10
|
+
Maximum value, above which element is replaced by max
|
11
|
+
* **min**:
|
12
|
+
Minimum value, under which element is replaced by min
|
4
13
|
**Inputs**
|
5
|
-
Between 1 and 3 inputs.
|
6
|
-
|
7
14
|
* **input** (heterogeneous) - **T**:
|
8
15
|
Input tensor whose elements to be clipped
|
9
|
-
* **min** (optional, heterogeneous) - **T**:
|
10
|
-
Minimum value, under which element is replaced by min. It must be a
|
11
|
-
scalar(tensor of empty shape).
|
12
|
-
* **max** (optional, heterogeneous) - **T**:
|
13
|
-
Maximum value, above which element is replaced by max. It must be a
|
14
|
-
scalar(tensor of empty shape).
|
15
16
|
**Outputs**
|
16
17
|
* **output** (heterogeneous) - **T**:
|
17
18
|
Output tensor with clipped input elements
|
18
19
|
**Type Constraints**
|
19
20
|
* **T** in (
|
20
21
|
tensor(double),
|
21
22
|
tensor(float),
|
22
23
|
tensor(float16)
|
23
24
|
):
|
24
25
|
Constrain input and output types to float tensors.
|