onnxruntime/include/onnxruntime/core/graph
Edward Chen 9f942e1a3e
Graph transformer to ensure unique DQ nodes for QDQ node units (#15145)
### Description
<!-- Describe your changes. -->

Add required graph transformer to duplicate DQ nodes to ensure that QDQ
node units have unique DQ nodes. This condition is necessary for QDQ
node unit processing.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

There is an existing Python utility that does this: 

c7ced7a5e9/tools/python/util/qdq_helpers/qdq_model_utils.py (L77)

This PR implements it as a graph transformer so it is integrated into
ORT and does not require a separate step to update the model. There are
also tests to ensure that its effects are not undone by basic level
graph optimizations.
2023-03-31 08:39:43 +10:00
..
basic_types.h Fix SDL warnings in CPU EP (#9975) 2021-12-19 20:54:29 -08:00
constants.h OnnxRuntime QNN EP (#14791) 2023-03-01 13:48:20 -08:00
function.h Re-implment the function support in onnxruntime (#11167) 2022-04-29 10:15:58 -07:00
graph.h Introduce RemovableAttributes (#14868) 2023-03-07 12:37:12 +01:00
graph_nodes.h Graph transformer to ensure unique DQ nodes for QDQ node units (#15145) 2023-03-31 08:39:43 +10:00
graph_viewer.h Multi-stream execution support (#13495) 2022-12-15 07:39:29 -08:00
indexed_sub_graph.h [xnnpack] Have Initializer in Mobile related EPs in Minimal_build and creating EP specific dynamic-schema (#12555) 2022-09-06 14:32:15 +08:00
node_arg.h Remove ORT_ENABLE_RUNTIME_OPTIMIZATION_IN_MINIMAL_BUILD. (#10778) 2022-03-08 16:18:49 -08:00
schema_registry.h Update C++ Standard from 14 to 17 (#8041) 2021-06-25 14:08:01 -07:00