Clip - 1 vs 12

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