You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SupportedONNXOps-NNPA.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
4
4
# Supported ONNX Operation for Target *NNPA*.
5
5
6
-
Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitations are listed when applicable. This documentation highlights the minimum and maximum opset versions that are fully supported by onnx-mlir and not the version changes.
6
+
Onnx-mlir currently supports ONNX operations targeting up to opset 21. Limitations are listed when applicable. This documentation highlights the minimum and maximum opset versions that are fully supported by onnx-mlir and not the version changes.
7
7
8
8
* Operations are defined by the [ONNX Standard](https://github.com/onnx/onnx/blob/main/docs/Operators.md).
9
9
***Supported Opsets** indicates the lowest and highest opset a model may have for onnx-mlir to support compiling a model with the operator.
10
-
* A * indicates onnx-mlir is compatible with the latest version of that operator available as of opset 20.
10
+
* A * indicates onnx-mlir is compatible with the latest version of that operator available as of opset 21.
11
11
12
12
13
13
NNPA has hardware limitations in dimension index size and tensor size, which are described in [NNPALimit.hpp](../src/Accelerators/NNPA/Support/NNPALimit.hpp). They are large enough for normal use cases, but if your model exceeds the limitations, CPU is used instead of NNPA.
Copy file name to clipboardExpand all lines: docs/SupportedONNXOps-cpu.md
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
4
4
# Supported ONNX Operation for Target *cpu*.
5
5
6
-
Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitations are listed when applicable. This documentation highlights the minimum and maximum opset versions that are fully supported by onnx-mlir and not the version changes.
6
+
Onnx-mlir currently supports ONNX operations targeting up to opset 21. Limitations are listed when applicable. This documentation highlights the minimum and maximum opset versions that are fully supported by onnx-mlir and not the version changes.
7
7
8
8
* Operations are defined by the [ONNX Standard](https://github.com/onnx/onnx/blob/main/docs/Operators.md).
9
9
***Supported Opsets** indicates the lowest and highest opset a model may have for onnx-mlir to support compiling a model with the operator.
10
-
* A * indicates onnx-mlir is compatible with the latest version of that operator available as of opset 20.
10
+
* A * indicates onnx-mlir is compatible with the latest version of that operator available as of opset 21.
11
11
12
12
13
13
| Op |Supported Opsets (inclusive) |Limitations |Notes |
@@ -36,8 +36,8 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
36
36
|**BitwiseOr**|18 - * |||
37
37
|**BitwiseXor**|18 - * |||
38
38
|**BlackmanWindow**|none ||||
39
-
|**Cast**|6 - * |Cast only between float and double types. Only ppc64le and MacOS platforms support float16. ||
40
-
|**CastLike**|19 - * |CastLike only between float and double types. Only ppc64le and MacOS platforms support float16. ||
39
+
|**Cast**|6 - * |Cast only between float and double types. Only ppc64le and MacOS platforms support float16. Does not support int4 and uint4. ||
40
+
|**CastLike**|19 - * |CastLike only between float and double types. Only ppc64le and MacOS platforms support float16. Does not support int4 and uint4. ||
41
41
|**CastMap**|none ||||
42
42
|**CategoryMapper**|none ||||
43
43
|**Ceil**|6 - * |||
@@ -48,8 +48,8 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
48
48
|**Compress**|9 - * |||
49
49
|**Concat**|6 - * |||
50
50
|**ConcatFromSequence**|none ||||
51
-
|**Constant**|6 - * |||
52
-
|**ConstantOfShape**|9 - * |||
51
+
|**Constant**|6 - * |Does not support int4 and uint4.||
52
+
|**ConstantOfShape**|9 - * |Does not support int4 and uint4.||
53
53
|**Conv**|6 - * |||
54
54
|**ConvInteger**|none ||||
55
55
|**ConvTranspose**|6 - * |Spatial dimensions (H and W in input `X`, and kH and kW in input `W`) must be static dimension. ||
@@ -59,7 +59,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
59
59
|**DFT**|17 - * |||
60
60
|**DeformConv**|none ||||
61
61
|**DepthToSpace**|13 - * |||
62
-
|**DequantizeLinear**|10 - * |Only support for per-tensor or layer dequantization. No support for per-axis dequantization. ||
62
+
|**DequantizeLinear**|10 - * |Only support for per-tensor or layer dequantization. No support for per-axis dequantization. Does not support int4 and uint4. ||
63
63
|**Det**|none ||||
64
64
|**DictVectorizer**|none ||||
65
65
|**Div**|6 - * |No support for short integers. ||
@@ -73,7 +73,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
73
73
|**Expand**|8 - * |Input `shape` must have static shape. ||
74
74
|**EyeLike**|none ||||
75
75
|**FeatureVectorizer**|none ||||
76
-
|**Flatten**|6 - * |||
76
+
|**Flatten**|6 - * |Does not support int4 and uint4.||
77
77
|**Floor**|6 - * |||
78
78
|**GRU**|7 - * |W, B and R must be constants. ||
79
79
|**Gather**|6 - * |||
@@ -94,8 +94,8 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
94
94
|**HardSigmoid**|6 - * |||
95
95
|**HardSwish**|none ||||
96
96
|**Hardmax**|6 - * |||
97
-
|**Identity**|16 - * |Sequence identity not supported. ||
98
-
|**If**|16 - * |Sequence and Optional outputs are not supported. ||
97
+
|**Identity**|16 - * |Sequence identity not supported. Does not support int4 and uint4. ||
98
+
|**If**|16 - * |Sequence and Optional outputs are not supported. Does not support int4 and uint4. ||
99
99
|**Imputer**|none ||||
100
100
|**InstanceNormalization**|6 - * |||
101
101
|**IsInf**|20 - * |Currently no support for float16 infinity value. Only for float32 and float64. ||
@@ -111,7 +111,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
111
111
|**LinearRegressor**|none ||||
112
112
|**Log**|6 - * |||
113
113
|**LogSoftmax**|13 - * |Axis 0, 1, and default currently disabled due to changes in ONNX 1.8.1/Opset 13. |Temporally removed due to changes in onnx 1.8.1. |
114
-
|**Loop**|6 - * |Input must have static shape. ||
114
+
|**Loop**|6 - * |Input must have static shape. Does not support int4 and uint4. ||
115
115
|**LpNormalization**|none ||||
116
116
|**LpPool**|none ||||
117
117
|**MatMul**|6 - * |||
@@ -142,11 +142,11 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
142
142
|**OptionalHasElement**|none ||||
143
143
|**Or**|7 - * |||
144
144
|**PRelu**|6 - * |||
145
-
|**Pad**|6 - * |axes input not supported. ||
145
+
|**Pad**|6 - * |axes input not supported. Does not support int4 and uint4. ||
146
146
|**Pow**|7 - * |No support for power with integer types. ||
147
147
|**QLinearConv**|none ||||
148
148
|**QLinearMatMul**|none ||||
149
-
|**QuantizeLinear**|10 - * |Do not support per-axis and i8 quantization. ||
149
+
|**QuantizeLinear**|10 - * |Does not support per-axis and i8 quantization. Does not support int4 and uint4. ||
150
150
|**RNN**|7 - * |W, B and R must be constants. ||
151
151
|**RandomNormal**|none ||||
152
152
|**RandomNormalLike**|none ||||
@@ -165,7 +165,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
165
165
|**ReduceSum**|6 - * |Default axis and do_not_keep_dim not supported. |Default axis and do_not_keep_dim temporarily removed due to changes in onnx 1.8.1. |
166
166
|**ReduceSumSquare**|13 - * |Default axis and do_not_keep_dim not supported. ||
167
167
|**Relu**|6 - * |||
168
-
|**Reshape**|6 - * |allowzero not supported. Input `shape` must have static dimension. ||
168
+
|**Reshape**|6 - * |allowzero not supported. Input `shape` must have static dimension. Does not support int4 and uint4. ||
169
169
|**Resize**|10 - * |Missing support for linear, cubic, crop, pytorch_half_pixel, and floor. Attributes antialias, axes and keep_aspect_ratio_policy are not supported. `scales` and `sizes` must have static dimension. ||
170
170
|**ReverseSequence**|10 - * |||
171
171
|**RoiAlign**|none ||||
@@ -174,7 +174,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
174
174
|**SVMClassifier**|none ||||
175
175
|**SVMRegressor**|none ||||
176
176
|**Scaler**|none ||||
177
-
|**Scan**|8 - * |Does not support dynamic shapes. |Precision issue with newer opset, maybe just unsupported. Dynamic shape?. |
177
+
|**Scan**|8 - * |Does not support dynamic shapes. Does not support int4 and uint4. |Precision issue with newer opset, maybe just unsupported. Dynamic shape?. |
178
178
|**Scatter**|none ||||
179
179
|**ScatterElements**|11 - * |Does not support duplicate indices. ||
180
180
|**ScatterND**|11 - * |Does not support scatternd add/multiply. ||
@@ -186,13 +186,13 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
186
186
|**SequenceInsert**|11 - * |Does not support unranked sequence element. ||
187
187
|**SequenceLength**|none ||||
188
188
|**SequenceMap**|none ||||
189
-
|**Shape**|15 - * |Does not support start and end attributes. ||
189
+
|**Shape**|15 - * |Does not support start and end attributes. Does not support int4 and uint4. ||
190
190
|**Shrink**|none ||||
191
191
|**Sigmoid**|6 - * |||
192
192
|**Sign**|9 - * |||
193
193
|**Sin**|7 - * |||
194
194
|**Sinh**|9 - * |||
195
-
|**Size**|13 - * |||
195
+
|**Size**|13 - * |Does not support int4 and uint4.||
196
196
|**Slice**|13 - * |Axis must be a constant argument. |Add tests to slices, currently have none. |
197
197
|**Softmax**|6 - * |||
198
198
|**SoftmaxCrossEntropyLoss**|none ||||
@@ -202,7 +202,7 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
202
202
|**Split**|6 - * |Does not support static and dynamic shape, zero size splits. |Temporally removed due to changes in onnx 1.8.1. |
203
203
|**SplitToSequence**|none ||||
204
204
|**Sqrt**|6 - * |||
205
-
|**Squeeze**|6 - * |Does not support static and dynamic shape. |Temporally removed due to changes in onnx 1.8.1. |
205
+
|**Squeeze**|6 - * |Does not support static and dynamic shape. Does not support int4 and uint4. |Temporally removed due to changes in onnx 1.8.1. |
206
206
|**StringNormalizer**|none ||||
207
207
|**Sub**|6 - * |Does not support short integers. ||
208
208
|**Sum**|6 - * |||
@@ -212,12 +212,12 @@ Onnx-mlir currently supports ONNX operations targeting up to opset 20. Limitatio
212
212
|**ThresholdedRelu**|none ||||
213
213
|**Tile**|6 - * |||
214
214
|**TopK**|10 - * |`K`, the number of top elements to retrieve, must have static shape. ||
215
-
|**Transpose**|6 - * |||
215
+
|**Transpose**|6 - * |Does not support int4 and uint4.||
216
216
|**TreeEnsembleClassifier**|none ||||
217
217
|**TreeEnsembleRegressor**|none ||||
218
218
|**Trilu**|14 - * |||
219
219
|**Unique**|11 - * |||
220
-
|**Unsqueeze**|6 - * |Does not support static and dynamic shape. |Temporally removed due to changes in onnx 1.8.1. |
220
+
|**Unsqueeze**|6 - * |Does not support static and dynamic shape. Does not support int4 and uint4. |Temporally removed due to changes in onnx 1.8.1. |
221
221
|**Upsample**|7 - * |Input `X` and `Y` must have static shape. ||
0 commit comments