onnxruntime/include/onnxruntime/core/common
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
..
logging Enabling thread pool to be numa-aware (#13778) 2022-12-12 10:33:55 -08:00
basic_types.h
code_location.h
common.h Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
const_pointer_container.h
denormal.h
eigen_common_wrapper.h upgrade emsdk to 3.1.19 (#12690) 2022-08-30 13:42:45 -07:00
exceptions.h Improve compatibility with certain STL's 2023-02-21 14:06:16 -08:00
gpu_profiler_common.h Fix skew between GPU/CPU timestamps in ORT profiler (#14004) 2023-01-05 11:07:26 -08:00
gsl.h Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
hash_combine.h Update kernel matching logic: decouple from op schemas and remove kernel def hashes (#12791) 2022-09-20 14:24:59 -07:00
inlined_containers.h
inlined_containers_fwd.h Graph transformer to ensure unique DQ nodes for QDQ node units (#15145) 2023-03-31 08:39:43 +10:00
make_string.h
narrow.h Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
optional.h
parse_string.h Update kernel matching logic: decouple from op schemas and remove kernel def hashes (#12791) 2022-09-20 14:24:59 -07:00
profiler_common.h Session-aware and thread-safe CUDA profiler (#13706) 2022-12-09 13:22:12 -08:00
span_utils.h Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
spin_pause.h
status.h Switch GSL to MS GSL 4.0.0 (#13416) 2022-10-29 04:15:20 -07:00
string_helper.h Csharp bindings for on-device training APIs (#12404) 2022-09-02 13:13:48 -07:00