Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[ONNX] Updated frontend's documentation (#28588)

Georgy Krivoruchko4c666c86f163
diff --git a/src/frontends/onnx/CMakeLists.txt b/src/frontends/onnx/CMakeLists.txt
index 291c5c346e0..15688b55e0f 100644
--- a/src/frontends/onnx/CMakeLists.txt
+++ b/src/frontends/onnx/CMakeLists.txt
@@ -5,6 +5,22 @@
add_subdirectory(onnx_common)
add_subdirectory(frontend)
+if(Python3_Interpreter_FOUND)
+ execute_process(
+ COMMAND ${Python3_EXECUTABLE}
+ ${CMAKE_CURRENT_SOURCE_DIR}/docs/check_supported_ops.py
+ ${CMAKE_CURRENT_SOURCE_DIR}/frontend/src/op
+ ${CMAKE_CURRENT_SOURCE_DIR}/docs/supported_ops.md
+ RESULT_VARIABLE SCRIPT_RESULT
+ OUTPUT_VARIABLE SCRIPT_OUTPUT
+ ERROR_VARIABLE SCRIPT_ERROR
+ )
+
+ if(NOT SCRIPT_RESULT EQUAL 0)
+ message(FATAL_ERROR "Python script failed with return code ${SCRIPT_RESULT}\nOutput: ${SCRIPT_OUTPUT}\nError: ${SCRIPT_ERROR}")
+ endif()
+endif()
+
if(ENABLE_TESTS)
add_subdirectory(tests)
endif()
diff --git a/src/frontends/onnx/docs/check_supported_ops.py b/src/frontends/onnx/docs/check_supported_ops.py
new file mode 100644
index 00000000000..0e2e1851169
--- /dev/null
+++ b/src/frontends/onnx/docs/check_supported_ops.py
@@ -0,0 +1,149 @@
+# Copyright (C) 2018-2025 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+import os
+import re
+import sys
+from pathlib import Path
+
+def run_in_ci():
+ if "CI" in os.environ and os.environ["CI"].lower() == "true":
+ return True
+
+ if "TF_BUILD" in os.environ and len(os.environ["TF_BUILD"]):
+ return True
+
+ if "JENKINS_URL" in os.environ and len(os.environ["JENKINS_URL"]):
+ return True
+
+ return False
+
+
+if not run_in_ci() and not '--manual' in sys.argv:
+ # execute check only in CI when the code is productized
+ exit(0)
+
+if len(sys.argv) < 3:
+ error_message = "Run in the following format: check_supported_ops.py path/to/ops supported_ops.md [--manual]\n"
+ error_message += " --manual - script originated to run in CI, use this flag to run it manually"
+ raise Exception(error_message)
+
+lookup_path = Path(sys.argv[1])
+supported_ops_doc = sys.argv[2]
+
+if not lookup_path.exists() or not lookup_path.is_dir():
+ raise Exception(f"Argument \'{lookup_path}\' isn\'t a valid path to sources")
+
+files = []
+# Looking for source files
+for path in lookup_path.rglob('*.cpp'):
+ files.append(path)
+for path in lookup_path.rglob('*.hpp'):
+ files.append(path)
+
+# MACRO Op Name Opset Impl Domain
+op_regex = re.compile(r'ONNX_OP(_M)?\("([a-z0-9_]+)",\s+([^\)\}]+)[\)\}]?,\s+([a-z0-9_:]+)(,\s+[^\)]+)?\);', re.IGNORECASE)
+
+ops = {}
+
+known_domains = {
+ "":"",
+ "OPENVINO_ONNX_DOMAIN":"org.openvinotoolkit",
+ "MICROSOFT_DOMAIN":"com.microsoft",
+ "PYTORCH_ATEN_DOMAIN":"org.pytorch.aten",
+ "MMDEPLOY_DOMAIN":"mmdeploy"
+}
+
+hdr = ""
+with open(supported_ops_doc, 'rt') as src:
+ table_line = 0
+ for line in src:
+ if table_line < 2:
+ hdr += line
+ if line.count('|') == 6:
+ table_line += 1
+ if table_line > 2:
+ row = [cell.strip() for cell in line.split('|')] # Split line by "|" delimeter and remove spaces
+ domain = row[1]
+ if not domain in ops:
+ ops[domain] = {}
+ opname = row[2]
+ defined = []
+ for item in row[4].split(', '):
+ val = 1
+ try:
+ val = int(item)
+ except:
+ continue
+ defined.append(val)
+ if not opname in ops[domain]:
+ ops[domain][opname] = {'supported':[], 'defined': defined, 'limitations':row[5]}
+
+documentation_errors = []
+
+for file_path in files:
+ with open(file_path.as_posix(), "r") as src:
+ reg_macro = None
+ for line in src:
+ # Multiline registration
+ if 'ONNX_OP' in line:
+ reg_macro = ""
+ if not reg_macro is None:
+ reg_macro += line
+ else:
+ continue
+ if not ');' in line:
+ continue
+ # Registration macro has been found, trying parse it
+ m = op_regex.search(reg_macro)
+ if m is None:
+ documentation_errors.append(f"Registration in file {file_path.as_posix()} is corrupted {reg_macro}, please check correctness")
+ if ');' in line: reg_macro = None
+ continue
+ domain = m.group(5)[2:].strip() if not m.group(5) is None else ""
+ if not domain in known_domains:
+ documentation_errors.append(f"Unknown domain found in file {file_path.as_posix()} with identifier {domain}, please modify check_supported_ops.py if needed")
+ if ');' in line: reg_macro = None
+ continue
+ domain = known_domains[domain]
+ opname = m.group(2)
+ opset = m.group(3)
+ if not domain in ops:
+ documentation_errors.append(f"Domain {domain} is missing in a list of documented operations supported_ops.md, update it by adding operation description")
+ if ');' in line: reg_macro = None
+ continue
+ if not opname in ops[domain]:
+ documentation_errors.append(f"Operation {domain if domain=='' else domain + '.'}{opname} is missing in a list of documented operations supported_ops.md, update it by adding operation description")
+ if ');' in line: reg_macro = None
+ continue
+ if opset.startswith('OPSET_SINCE'):
+ ops[domain][opname]['supported'].append(int(opset[12:]))
+ elif opset.startswith('OPSET_IN'):
+ ops[domain][opname]['supported'].append(int(opset[9:]))
+ elif opset.startswith('OPSET_RANGE'):
+ ops[domain][opname]['supported'].append(int(opset[12:].split(',')[0]))
+ elif opset.startswith('{'):
+ ops[domain][opname]['supported'].append(int(opset[1:].split(',')[0]))
+ else:
+ documentation_errors.append(f"Domain {domain} is missing in a list of documented operations supported_ops.md, update it by adding operation description")
+ if ');' in line: reg_macro = None
+ continue
+ if ');' in line:
+ reg_macro = None
+
+if len(documentation_errors) > 0:
+ for errstr in documentation_errors:
+ print('[ONNX Frontend] ' + errstr)
+ raise Exception('[ONNX Frontend] failed: due to documentation errors')
+
+with open(supported_ops_doc, 'wt') as dst:
+ dst.write(hdr)
+ for domain, ops in ops.items():
+ for op_name in sorted(list(ops.keys())):
+ data = ops[op_name]
+ min_opset = data['defined'][-1] if len(data['defined']) > 0 else 1
+ if min_opset in data['supported']:
+ min_opset = 1
+ dst.write(f"|{domain:<24}|{op_name:<56}|{', '.join([str(max(i, min_opset)) for i in sorted(data['supported'], reverse=True)]):<24}|{', '.join([str(i) for i in data['defined']]):<32}|{data['limitations']:<32}|\n")
+
+print("Data collected and stored")
diff --git a/src/frontends/onnx/docs/how_to_add_op.md b/src/frontends/onnx/docs/how_to_add_op.md
index de8a0eab6e8..fb6eb601ca4 100644
--- a/src/frontends/onnx/docs/how_to_add_op.md
+++ b/src/frontends/onnx/docs/how_to_add_op.md
@@ -3,31 +3,23 @@
## How to implement a new operation in ONNX FE codebase
ONNX operations ("op" or "ops" for short in this article) can be distinguished into two main categories: [the official ops defined in the ONNX standard](https://github.com/onnx/onnx/blob/main/docs/Operators.md) and the custom-domain ops (such as ops from the `org.openvinotoolkit`, `com.microsoft`, and `org.pytorch.aten` domains). Multiple operator handlers for different versions of an op can be defined. When importing a model, ONNX FE tries to use a handler that matches the version of the opset in the model. If such implementation doesn't exist, it will try to use the existing handler(s) starting with the greatest opset number. When adding a new operator's implementation, the implementation has to be registered using version `1` (according to an implementation requirement of ONNX FE), even if the operation has been added to the ONNX standard in an opset greater than 1.
-For example, we want to implement our new `org.openvinotoolkit.CustomAdd` operation in version `1`.
-The first step is to add `.cpp` and `.hpp` files in [the ops folder](../../../../src/frontends/onnx/frontend/src/op). For this particular case, it should be [op/org.openvinotoolkit](../../../../src/frontends/onnx/frontend/src/op/org.openvinotoolkit) to be consistent with the op folder layout.
-The declaration in `.hpp` can look like:
-```cpp
-#pragma once
+List of a currently available ops is available [in Supported Operations](supported_ops.md).
-#include "core/node.hpp"
+For example, we want to implement our new `org.openvinotoolkit.CustomAdd` operation in version `1`.
+The first step is to add `.cpp` file in [the ops folder](../../../../src/frontends/onnx/frontend/src/op). For this particular case, it should be [op/org.openvinotoolkit](../../../../src/frontends/onnx/frontend/src/op/org.openvinotoolkit) to be consistent with the op folder layout.
-namespace ov {
-namespace frontend {
-namespace onnx {
-namespace op {
-namespace set_1 {
+The definition in `.cpp` contains an implementation of transformation from [ov::frontend::onnx::Node](../../../../src/frontends/onnx/frontend/include/onnx_import/core/node.hpp) to [ov::OutputVector](../../../../src/core/include/openvino/core/node_vector.hpp).
-ov::OutputVector custom_add(const ov::frontend::onnx::Node& node);
+Transformation must be implemented in a correct namespace, which is defined as ov::frontend::onnx::domain::opset_N. Domain is operation domain name (ai_onnx for ONNX standard), opset_N - defined operation opset.
-} // namespace set_1
-} // namespace op
-} // namespace onnx
-} // namespace frontend
-} // namespace ov
+The next step is to register a new op by using a macro [ONNX_OP](../../../../src/frontends/onnx/frontend/src/core/operator_set.hpp). For `org.openvinotoolkit.CustomAdd`, the registration can look like:
+```cpp
+ONNX_OP("CustomAdd", OPSET_SINCE(1), ai_onnx::opset_1::custom_add, OPENVINO_ONNX_DOMAIN);
```
-The definition in `.cpp` contains an implementation of transformation from [ov::frontend::onnx::Node](../../../../src/frontends/onnx/frontend/include/onnx_import/core/node.hpp) to [ov::OutputVector](../../../../src/core/include/openvino/core/node_vector.hpp). Such implementation can look like:
+
+Whole implementation can look like:
```cpp
-#include "op/org.openvinotoolkit/custom_add.hpp"
+#include "core/operator_set.hpp"
#include "exceptions.hpp"
#include "openvino/op/add.hpp"
@@ -36,18 +28,19 @@ The definition in `.cpp` contains an implementation of transformation from [ov::
#include "openvino/op/multiply.hpp"
#include "utils/common.hpp"
+using namespace ov::op;
+
namespace ov {
namespace frontend {
namespace onnx {
-namespace op {
-namespace set_1 {
+namespace ai_onnx {
+namespace opset_1 {
ov::OutputVector custom_add(const ov::frontend::onnx::Node& node) {
+ // CustomAdd should have at least 2 inputs
+ common::default_op_checks(node, 2);
+
const auto& inputs = node.get_ov_inputs();
- CHECK_VALID_NODE(node,
- inputs.size() == 2,
- "CustomAdd should have exactly 2 inputs, got: ",
- inputs.size());
const auto in1 = inputs[0];
const auto in2 = inputs[1];
const auto alpha = node.get_attribute_value<float>("alpha", 1);
@@ -64,19 +57,16 @@ ov::OutputVector custom_add(const ov::frontend::onnx::Node& node) {
return {std::make_shared<v1::Multiply>(add, alpha_node)};
}
-} // namespace set_1
-} // namespace op
+ONNX_OP("CustomAdd", OPSET_SINCE(1), ai_onnx::opset_1::custom_add, OPENVINO_ONNX_DOMAIN);
+
+} // namespace opset_1
+} // namespace ai_onnx
} // namespace onnx
} // namespace frontend
} // namespace ov
```
-The next step is to register a new op in [ops_bridge](../../../../src/frontends/onnx/frontend/src/ops_bridge.cpp). For `org.openvinotoolkit.CustomAdd`, the registration can look like:
-```cpp
-#include "op/org.openvinotoolkit/custom_add.hpp"
-...
-REGISTER_OPERATOR_WITH_DOMAIN(OPENVINO_ONNX_DOMAIN, "CustomAdd", 1, custom_add);
-```
-The minimum requirement to receive an approval during the code review is the implementation of [C++ unit tests](tests.md#C++-tests) for a new operation.
+
+The minimum requirement to receive an approval during the code review is the implementation of [C++ unit tests](tests.md#C++-tests) for a new operation. To make a test you may need to prepare a [prototxt file](../tests/models) with a small model which implements your operation.
## How to register a custom operation via extensions mechanism
@@ -95,7 +85,6 @@ If an OpenVINO Core operation provides exactly what you need (without decomposit
```cpp
core.add_extension(ov::frontend::onnx::OpExtension<ov::opset9::Add>("org.openvinotoolkit", "CustomAdd"));
```
-If you need to register an custom operation for [OpenVINO Model Converter](../../../../tools/ovc) scenario, you should consider `SOExtension`. More details about it can be found in [Library with Extensions](../../../../docs/Extensibility_UG/Intro.md#create-a-library-with-extensions).
### Python-based extensions
C++ based extensions have their equivalents in Python. For `ConversionExtension`, an example of usage can look like:
```python
diff --git a/src/frontends/onnx/docs/supported_ops.md b/src/frontends/onnx/docs/supported_ops.md
new file mode 100644
index 00000000000..ac61df0ce6e
--- /dev/null
+++ b/src/frontends/onnx/docs/supported_ops.md
@@ -0,0 +1,336 @@
+# ONNX Operations Supported by OpenVINO ONNX Frontend
+
+Here is a table of operations available by the ONNX Frontend.
+
+OpenVINO provides support for operations of Default Opset (empty in table below), other operations are supported by community.
+
+| Domain | Operation Name | Supported Version | Defined Version | Limitation |
+|------------------------|--------------------------------------------------------|------------------------|--------------------------------|--------------------------------|
+| |ATen |1 | | |
+| |Abs |13, 6, 1 |13, 6, 1 | |
+| |Acos |7 |22, 7 | |
+| |Acosh |9 |22, 9 | |
+| |Add |14, 13, 7, 6, 1 |14, 13, 7, 6, 1 | |
+| |Affine |1 | | |
+| |AffineGrid | |20 | |
+| |And |7, 1 |7, 1 | |
+| |ArgMax |12, 1 |13, 12, 11, 1 | |
+| |ArgMin |12, 1 |13, 12, 11, 1 | |
+| |Asin |7 |22, 7 | |
+| |Asinh |9 |22, 9 | |
+| |Atan |7 |22, 7 | |
+| |Atanh |9 |22, 9 | |
+| |AveragePool |1 |22, 19, 11, 10, 7, 1 | |
+| |BatchNormalization |14, 7, 1 |15, 14, 9, 7, 6, 1 | |
+| |Bernoulli | |22, 15 | |
+| |BitShift |11 |11 | |
+| |BitwiseAnd |18 |18 | |
+| |BitwiseNot |18 |18 | |
+| |BitwiseOr |18 |18 | |
+| |BitwiseXor |18 |18 | |
+| |BlackmanWindow |17 |17 | |
+| |Cast |1 |21, 19, 13, 9, 6, 1 | |
+| |CastLike |15 |21, 19, 15 | |
+| |Ceil |1 |13, 6, 1 | |
+| |Celu |12 |12 | |
+| |CenterCropPad | |18 | |
+| |Clip |11, 1 |13, 12, 11, 6, 1 | |
+| |Col2Im | |18 | |
+| |Compress |9 |11, 9 | |
+| |Concat |1 |13, 11, 4, 1 | |
+| |ConcatFromSequence | |11 | |
+| |Constant |13, 1 |21, 19, 13, 12, 11, 9, 1 | |
+| |ConstantFill |1 | | |
+| |ConstantOfShape |9 |21, 20, 9 | |
+| |Conv |1 |22, 11, 1 | |
+| |ConvInteger |10 |10 | |
+| |ConvTranspose |1 |22, 11, 1 | |
+| |Cos |7 |22, 7 | |
+| |Cosh |9 |22, 9 | |
+| |Crop |1 | | |
+| |CumSum |11 |14, 11 | |
+| |DFT |17 |20, 17 | |
+| |DeformConv | |22, 19 | |
+| |DepthToSpace |1 |13, 11, 1 | |
+| |DequantizeLinear |21, 19, 13, 10 |21, 19, 13, 10 | |
+| |Det | |22, 11 | |
+| |Div |7, 1 |14, 13, 7, 6, 1 | |
+| |Dropout |12, 7, 1 |22, 13, 12, 10, 7, 6, 1 | |
+| |DynamicQuantizeLinear |11 |11 | |
+| |Einsum |12 |12 | |
+| |Elu |1 |22, 6, 1 | |
+| |Equal |1 |19, 13, 11, 7, 1 | |
+| |Erf |9 |13, 9 | |
+| |Exp |1 |13, 6, 1 | |
+| |Expand |8 |13, 8 | |
+| |EyeLike |9 |22, 9 | |
+| |Flatten |1 |21, 13, 11, 9, 1 | |
+| |Floor |1 |13, 6, 1 | |
+| |GRU |1 |22, 14, 7, 3, 1 | |
+| |Gather |1 |13, 11, 1 | |
+| |GatherElements |11 |13, 11 | |
+| |GatherND |11 |13, 12, 11 | |
+| |Gelu |20 |20 | |
+| |Gemm |6, 1 |13, 11, 9, 7, 6, 1 | |
+| |GlobalAveragePool |1 |22, 1 | |
+| |GlobalLpPool |1 |22, 2, 1 | |
+| |GlobalMaxPool |1 |22, 1 | |
+| |Greater |1 |13, 9, 7, 1 | |
+| |GreaterOrEqual |16, 12 |16, 12 | |
+| |GridSample |16 |22, 20, 16 | |
+| |GroupNormalization |18 |21, 18 | |
+| |HammingWindow |17 |17 | |
+| |HannWindow |17 |17 | |
+| |HardSigmoid |1 |22, 6, 1 | |
+| |HardSwish |14 |22, 14 | |
+| |Hardmax |13, 1 |13, 11, 1 | |
+| |Identity |1 |21, 19, 16, 14, 13, 1 | |
+| |If |1 |21, 19, 16, 13, 11, 1 | |
+| |ImageDecoder | |20 | |
+| |ImageScaler |1 | | |
+| |InstanceNormalization |1 |22, 6, 1 | |
+| |IsFinite |1 | | |
+| |IsInf |10 |20, 10 | |
+| |IsNaN |9 |20, 13, 9 | |
+| |LRN |1 |13, 1 | |
+| |LSTM |1 |22, 14, 7, 1 | |
+| |LayerNormalization |17 |17 | |
+| |LeakyRelu |1 |16, 6, 1 | |
+| |Less |1 |13, 9, 7, 1 | |
+| |LessOrEqual |16, 12 |16, 12 | |
+| |Log |1 |13, 6, 1 | |
+| |LogSoftmax |13, 1 |13, 11, 1 | |
+| |Loop |1 |21, 19, 16, 13, 11, 1 | |
+| |LpNormalization |1 |22, 1 | |
+| |LpPool | |22, 18, 11, 2, 1 | |
+| |MatMul |1 |13, 9, 1 | |
+| |MatMulInteger |10 |10 | |
+| |Max |8, 1 |13, 12, 8, 6, 1 | |
+| |MaxPool |8, 1 |22, 12, 11, 10, 8, 1 | |
+| |MaxRoiPool |1 |22, 1 | |
+| |MaxUnpool | |22, 11, 9 | |
+| |Mean |1 |13, 8, 6, 1 | |
+| |MeanVarianceNormalization |9, 1 |13, 9 | |
+| |MelWeightMatrix | |17 | |
+| |Min |8, 1 |13, 12, 8, 6, 1 | |
+| |Mish |18 |22, 18 | |
+| |Mod |10 |13, 10 | |
+| |Mul |7, 1 |14, 13, 7, 6, 1 | |
+| |Multinomial |7 |22, 7 | |
+| |Neg |1 |13, 6, 1 | |
+| |NegativeLogLikelihoodLoss |12 |22, 13, 12 | |
+| |NonMaxSuppression |10 |11, 10 | |
+| |NonZero |9 |13, 9 | |
+| |Not |1 |1 | |
+| |OneHot |9 |11, 9 | |
+| |Optional | |15 | |
+| |OptionalGetElement | |18, 15 | |
+| |OptionalHasElement | |18, 15 | |
+| |Or |1 |7, 1 | |
+| |PRelu |1 |16, 9, 7, 6, 1 | |
+| |Pad |11, 1 |21, 19, 18, 13, 11, 2, 1 | |
+| |Pow |1 |15, 13, 12, 7, 1 | |
+| |QLinearConv |10 |10 | |
+| |QLinearMatMul |10 |21, 10 | |
+| |QuantizeLinear |13, 10 |21, 19, 13, 10 | |
+| |RNN |1 |22, 14, 7, 1 | |
+| |RandomNormal |1 |22, 1 | |
+| |RandomNormalLike |1 |22, 1 | |
+| |RandomUniform |1 |22, 1 | |
+| |RandomUniformLike |1 |22, 1 | |
+| |Range |11 |11 | |
+| |Reciprocal |1 |13, 6, 1 | |
+| |ReduceL1 |18, 13, 1 |18, 13, 11, 1 | |
+| |ReduceL2 |18, 13, 1 |18, 13, 11, 1 | |
+| |ReduceLogSum |18, 1 |18, 13, 11, 1 | |
+| |ReduceLogSumExp |18, 13, 1 |18, 13, 11, 1 | |
+| |ReduceMax |20, 18, 13, 1 |20, 18, 13, 12, 11, 1 | |
+| |ReduceMean |18, 13, 1 |18, 13, 11, 1 | |
+| |ReduceMin |20, 18, 13, 1 |20, 18, 13, 12, 11, 1 | |
+| |ReduceProd |18, 13, 1 |18, 13, 11, 1 | |
+| |ReduceSum |13, 1 |13, 11, 1 | |
+| |ReduceSumSquare |18, 13, 1 |18, 13, 11, 1 | |
+| |RegexFullMatch | |20 | |
+| |Relu |1 |14, 13, 6, 1 | |
+| |Reshape |1 |21, 19, 14, 13, 5, 1 | |
+| |Resize |11, 10 |19, 18, 13, 11, 10 | |
+| |ReverseSequence |10 |10 | |
+| |RoiAlign |16, 10 |22, 16, 10 | |
+| |Round |11 |22, 11 | |
+| |STFT |17 |17 | |
+| |Scan |9, 8 |21, 19, 16, 11, 9, 8 | |
+| |Scatter |9 |11, 9 | |
+| |ScatterElements |11 |18, 16, 13, 11 | |
+| |ScatterND |11 |18, 16, 13, 11 | |
+| |Selu |1 |22, 6, 1 | |
+| |SequenceAt | |11 | |
+| |SequenceConstruct | |11 | |
+| |SequenceEmpty | |11 | |
+| |SequenceErase | |11 | |
+| |SequenceInsert | |11 | |
+| |SequenceLength | |11 | |
+| |SequenceMap | |17 | |
+| |Shape |15, 1 |21, 19, 15, 13, 1 | |
+| |Shrink |9 |9 | |
+| |Sigmoid |1 |13, 6, 1 | |
+| |Sign |9 |13, 9 | |
+| |SimplifiedLayerNormalization |1 |1 | |
+| |Sin |7 |22, 7 | |
+| |Sinh |9 |22, 9 | |
+| |Size |1 |21, 19, 13, 1 | |
+| |Slice |10, 1 |13, 11, 10, 1 | |
+| |Softmax |13, 11, 1 |13, 11, 1 | |
+| |SoftmaxCrossEntropyLoss | |13, 12 | |
+| |Softplus |1 |22, 1 | |
+| |Softsign |1 |22, 1 | |
+| |SpaceToDepth |1 |13, 1 | |
+| |Split |13, 1 |18, 13, 11, 2, 1 | |
+| |SplitToSequence | |11 | |
+| |Sqrt |1 |13, 6, 1 | |
+| |Squeeze |13, 1 |21, 13, 11, 1 | |
+| |StringConcat | |20 | |
+| |StringNormalizer | |10 | |
+| |StringSplit | |20 | |
+| |Sub |7, 1 |14, 13, 7, 6, 1 | |
+| |Sum |8, 1 |13, 8, 6, 1 | |
+| |Tan |7 |22, 7 | |
+| |Tanh |1 |13, 6, 1 | |
+| |TfIdfVectorizer | |9 | |
+| |ThresholdedRelu |10 |22, 10 | |
+| |Tile |1 |13, 6, 1 | |
+| |TopK |11, 10, 1 |11, 10, 1 | |
+| |Transpose |1 |21, 13, 1 | |
+| |Trilu |14 |14 | |
+| |Unique |11 |11 | |
+| |Unsqueeze |13, 1 |21, 13, 11, 1 | |
+| |Upsample |9, 7, 1 |10, 9, 7 | |
+| |Where |9 |16, 9 | |
+| |Xor |1 |7, 1 | |
+|com.microsoft |Attention |1 |1 | |
+|com.microsoft |AttnLSTM | |1 | |
+|com.microsoft |BeamSearch | |1 | |
+|com.microsoft |BiasAdd |1 |1 | |
+|com.microsoft |BiasDropout | |1 | |
+|com.microsoft |BiasGelu |1 |1 | |
+|com.microsoft |BiasSoftmax | |1 | |
+|com.microsoft |BiasSplitGelu | |1 | |
+|com.microsoft |BifurcationDetector | |1 | |
+|com.microsoft |BitmaskBiasDropout | |1 | |
+|com.microsoft |BitmaskDropout | |1 | |
+|com.microsoft |CDist | |1 | |
+|com.microsoft |ComplexMul | |1 | |
+|com.microsoft |ComplexMulConj | |1 | |
+|com.microsoft |ConvTransposeWithDynamicPads | |1 | |
+|com.microsoft |CropAndResize | |1 | |
+|com.microsoft |DecoderAttention | |1 | |
+|com.microsoft |DecoderMaskedMultiHeadAttention | |1 | |
+|com.microsoft |DecoderMaskedSelfAttention | |1 | |
+|com.microsoft |DequantizeBFP | |1 | |
+|com.microsoft |DequantizeLinear |1 |1 | |
+|com.microsoft |DequantizeWithOrder | |1 | |
+|com.microsoft |DynamicQuantizeLSTM | |1 | |
+|com.microsoft |DynamicQuantizeMatMul |1 |1 | |
+|com.microsoft |DynamicTimeWarping | |1 | |
+|com.microsoft |EPContext | |1 | |
+|com.microsoft |EmbedLayerNormalization |1 |1 | |
+|com.microsoft |ExpandDims | |1 | |
+|com.microsoft |FastGelu |1 |1 | |
+|com.microsoft |FusedConv |1 |1 | |
+|com.microsoft |FusedGemm |1 |1 | |
+|com.microsoft |FusedMatMul |1 |1 | |
+|com.microsoft |FusedMatMulActivation | |1 | |
+|com.microsoft |GatedRelativePositionBias | |1 | |
+|com.microsoft |GatherND |1 |1 | |
+|com.microsoft |Gelu |1 |1 | |
+|com.microsoft |GemmFastGelu | |1 | |
+|com.microsoft |GemmFloat8 | |1 | |
+|com.microsoft |GemmaRotaryEmbedding | |1 | |
+|com.microsoft |GreedySearch | |1 | |
+|com.microsoft |GridSample | |1 | |
+|com.microsoft |GroupNorm | |1 | |
+|com.microsoft |GroupQueryAttention |1 |1 | |
+|com.microsoft |Inverse | |1 | |
+|com.microsoft |Irfft | |1 | |
+|com.microsoft |LongformerAttention | |1 | |
+|com.microsoft |MatMulBnb4 | |1 | |
+|com.microsoft |MatMulFpQ4 | |1 | |
+|com.microsoft |MatMulInteger16 | |1 | |
+|com.microsoft |MatMulIntegerToFloat |1 |1 | |
+|com.microsoft |MatMulNBits |1 |1 | |
+|com.microsoft |MaxpoolWithMask | |1 | |
+|com.microsoft |MoE | |1 | |
+|com.microsoft |MulInteger | |1 | |
+|com.microsoft |MultiHeadAttention | |1 | |
+|com.microsoft |MurmurHash3 | |1 | |
+|com.microsoft |NGramRepeatBlock | |1 | |
+|com.microsoft |NhwcConv | |1 | |
+|com.microsoft |NhwcFusedConv | |1 | |
+|com.microsoft |NhwcMaxPool | |1 | |
+|com.microsoft |PackedAttention | |1 | |
+|com.microsoft |PackedMultiHeadAttention | |1 | |
+|com.microsoft |Pad |1 |1 | |
+|com.microsoft |QAttention | |1 | |
+|com.microsoft |QGemm | |1 | |
+|com.microsoft |QLinearAdd |1 |1 | |
+|com.microsoft |QLinearAveragePool |1 |1 | |
+|com.microsoft |QLinearConcat | |1 | |
+|com.microsoft |QLinearConv | |1 | |
+|com.microsoft |QLinearGlobalAveragePool | |1 | |
+|com.microsoft |QLinearLeakyRelu |1 |1 | |
+|com.microsoft |QLinearMul |1 |1 | |
+|com.microsoft |QLinearReduceMean | |1 | |
+|com.microsoft |QLinearSigmoid |1 |1 | |
+|com.microsoft |QLinearSoftmax |1 |1 | |
+|com.microsoft |QLinearWhere | |1 | |
+|com.microsoft |QMoE | |1 | |
+|com.microsoft |QOrderedAttention | |1 | |
+|com.microsoft |QOrderedGelu | |1 | |
+|com.microsoft |QOrderedLayerNormalization | |1 | |
+|com.microsoft |QOrderedLongformerAttention | |1 | |
+|com.microsoft |QOrderedMatMul | |1 | |
+|com.microsoft |QuantizeBFP | |1 | |
+|com.microsoft |QuantizeLinear |1 |1 | |
+|com.microsoft |QuantizeWithOrder | |1 | |
+|com.microsoft |QuickGelu |1 |1 | |
+|com.microsoft |Range |1 |1 | |
+|com.microsoft |ReduceSumInteger | |1 | |
+|com.microsoft |RelativePositionBias | |1 | |
+|com.microsoft |RemovePadding | |1 | |
+|com.microsoft |RestorePadding | |1 | |
+|com.microsoft |Rfft | |1 | |
+|com.microsoft |RotaryEmbedding | |1 | |
+|com.microsoft |SampleOp | |1 | |
+|com.microsoft |Sampling | |1 | |
+|com.microsoft |SimplifiedLayerNormalization | |1 | |
+|com.microsoft |SkipGroupNorm | |1 | |
+|com.microsoft |SkipLayerNormalization |1 |1 | |
+|com.microsoft |SkipSimplifiedLayerNormalization |1 |1 | |
+|com.microsoft |Snpe | |1 | |
+|com.microsoft |SparseAttention | |1 | |
+|com.microsoft |SparseToDenseMatMul | |1 | |
+|com.microsoft |Tokenizer | |1 | |
+|com.microsoft |TorchEmbedding | |1 | |
+|com.microsoft |TransposeMatMul | |1 | |
+|com.microsoft |Trilu |1 |1 | |
+|com.microsoft |UnfoldTensor | |1 | |
+|com.microsoft |Unique | |1 | |
+|com.microsoft |WhisperBeamSearch | |1 | |
+|com.microsoft |WordConvEmbedding | |1 | |
+|org.openvinotoolkit |DeformableConv2D |1 |1 | |
+|org.openvinotoolkit |DetectionOutput |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronDetectionOutput |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronGenerateProposalsSingleImage |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronGroupNorm |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronPriorGridGenerator |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronROIFeatureExtractor |1 |1 | |
+|org.openvinotoolkit |ExperimentalDetectronTopKROIs |1 |1 | |
+|org.openvinotoolkit |FakeQuantize |1 |1 | |
+|org.openvinotoolkit |GenerateProposals |1 |1 | |
+|org.openvinotoolkit |GroupNorm |1 |1 | |
+|org.openvinotoolkit |Normalize |1 |1 | |
+|org.openvinotoolkit |PriorBox |1 |1 | |
+|org.openvinotoolkit |PriorBoxClustered |1 |1 | |
+|org.openvinotoolkit |Swish |1 |1 | |
+|org.pytorch.aten |adaptive_avg_pool2d |1 |1 | |
+|mmdeploy |MMCVRoIAlignRotated |1 |1 | |
+|mmdeploy |NMSRotated |1 |1 | |
diff --git a/src/frontends/onnx/docs/tests.md b/src/frontends/onnx/docs/tests.md
index f676b001695..8012dd50814 100644
--- a/src/frontends/onnx/docs/tests.md
+++ b/src/frontends/onnx/docs/tests.md
@@ -11,8 +11,13 @@
## How to run the tests locally
## C++ tests
-1. Build OpenVINO with the `-DENABLE_TESTS=ON` flag.
-2. Run `<OV_REPO_DIR>/bin/intel64/<OV_BUILD_TYPE>/ov_onnx_frontend_tests`, where <OV_REPO_DIR> is your workspace folder, and `OV_BUILD_TYPE` can be `Debug` or `Release`, depending on the `-DCMAKE_BUILD_TYPE` CMake build option.
+1. Install Python dependencies:
+```
+pip install -r <OV_REPO_DIR>/src/frontends/onnx/tests/requirements.txt
+```
+After that CMake will produce test models from existin [*.prototxt files](../tests/models)
+2. Build OpenVINO with the `-DENABLE_TESTS=ON` flag.
+3. Run `<OV_REPO_DIR>/bin/intel64/<OV_BUILD_TYPE>/ov_onnx_frontend_tests`, where <OV_REPO_DIR> is your workspace folder, and `OV_BUILD_TYPE` can be `Debug` or `Release`, depending on the `-DCMAKE_BUILD_TYPE` CMake build option.
You can filter tests using the `--gtest_filter` flag like any other gtest-based tests.
For example:
diff --git a/src/frontends/onnx/frontend/src/op/reduce.cpp b/src/frontends/onnx/frontend/src/op/reduce.cpp
index 3293219ad56..a5ec422068f 100644
--- a/src/frontends/onnx/frontend/src/op/reduce.cpp
+++ b/src/frontends/onnx/frontend/src/op/reduce.cpp
@@ -326,7 +326,6 @@ static bool register_multiple_translators(void) {
ONNX_OP_M("ReduceMin", {18, 19}, ai_onnx::opset_18::reduce_min);
ONNX_OP_M("ReduceProd", OPSET_SINCE(18), ai_onnx::opset_18::reduce_prod);
ONNX_OP_M("ReduceSumSquare", OPSET_SINCE(18), ai_onnx::opset_18::reduce_sum_square);
- ONNX_OP_M("ReduceL1", OPSET_SINCE(18), ai_onnx::opset_18::reduce_l1);
return true;
}