onnxruntime/tools/python
Scott McKay 4d3cd2f685
Add helper for optimizing a QDQ format model for usage with ORT. (#10595)
* Add initial helper for optimizing a QDQ format model for usage with ORT.

If a DQ node has multiple consumers it will end up in multiple QDQ node units. This is complicated to handle as each qdq unit could end up being handled by different execution providers. By duplicating the DQ node we simplify this logic.

Generally the duplicate nodes will disappear when the qdq node unit is converted to a single node with a quantized operator. If there are qdq node units that are not able to be converted to use a quantized operator the ORT cleanup (pending) to drop remaining Q->DQ pairs between fp32 nodes can remove any remaining DQ nodes.

* Fix pep8 warning

Co-authored-by: Guoyu Wang <wanggy@outlook.com>
2022-02-21 09:26:19 +10:00
..
util Add helper for optimizing a QDQ format model for usage with ORT. (#10595) 2022-02-21 09:26:19 +10:00
__init__.py
check_onnx_model_mobile_usability.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
convert_onnx_models_to_ort.py Android package infrastructure (#7430) 2021-04-30 14:23:54 +10:00
create_reduced_build_config.py Support specifying globally allowed types from build script (#6677) 2021-02-22 14:05:00 -08:00
dump_ort_model.py Remove experimental from ORT format namespace (#9729) 2021-11-11 19:46:30 -08:00
dump_subgraphs.py
example_operator_perf_test.py
FindOptimizerOpsetVersionUpdatesRequired.py
gen_contrib_doc.py Update the operator documentation generation (#7787) 2021-06-02 17:47:40 +10:00
gen_opkernel_doc.py Update the operator documentation generation (#7787) 2021-06-02 17:47:40 +10:00
gen_ort_mobile_pkg_doc.py Add supported operators/types documentation for the ORT Mobile package (#7807) 2021-05-26 15:57:40 +10:00
get_submodules.py
onnx_test_data_utils.py
ort_test_dir_utils.py Add detailed assertion error message (#7232) 2021-04-05 10:05:40 -07:00
PythonTools.md
remove_initializer_from_input.py
run_android_emulator.py Add support for running Android emulator from build.py on Windows. (#6317) 2021-01-13 19:21:49 -08:00
sparsify_initializers.py Support of sparse initializers with smaller indices data type (#8834) 2021-08-27 14:02:48 -07:00
update_version.py fixing pypi pipeline for release (#9716) 2021-11-10 17:33:51 -08:00