onnxruntime/tools/python/util
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
..
android Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
mobile_helpers Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
ort_format_model Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
qdq_helpers Add helper for optimizing a QDQ format model for usage with ORT. (#10595) 2022-02-21 09:26:19 +10:00
test Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
__init__.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
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 Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
get_azcopy.py
logger.py
make_dynamic_shape_fixed.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
onnx_model_utils.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
optimize_onnx_model.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
platform_helpers.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
pytorch_export_helpers.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00
reduced_build_config_parser.py Update mobile prebuilt package ops to add support for opset 14 and 15 (#9717) 2021-11-18 10:44:39 +10:00
run.py Build script logging updates (#8618) 2021-08-05 09:41:17 -07:00
update_onnx_opset.py Add range of helpers for making usage of ORT Mobile easier. (#10458) 2022-02-18 07:35:25 +10:00