onnxruntime/tools/python
Scott McKay 159fe9d4f3
Update to mobile model usability checker (#19843)
### Description
<!-- Describe your changes. -->

- Add check for CoreML MLProgram supported ops
- Only check usability with ORT Mobile package if requested
- this package will be deprecated so info is a) of minimal value and b)
can be confusing.
- Output more things at INFO level
- a lot of meaningful info was only output at DEBUG level. The default
INFO level is more useful
  - dump full partition info at DEBUG level
- Check subgraphs fully
  - CoreML can handle a subgraph
- TBD if we want to add support for adding a subgraph to the parent
graph for Loop and If nodes
    - most likely will be required for simple If nodes to be performant
- Check 5D CoreML limitation

### 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. -->
Improve helper tools

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2024-06-18 07:50:33 +10:00
..
util Update to mobile model usability checker (#19843) 2024-06-18 07:50:33 +10:00
__init__.py
check_onnx_model_mobile_usability.py
convert_onnx_models_to_ort.py Add ability to create ort format models from training offline utility (#16360) 2023-06-21 18:51:43 -07:00
create_reduced_build_config.py
dump_ort_model.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
dump_subgraphs.py [Linter] Bump ruff and remove pylint (#17797) 2023-10-05 21:07:33 -07:00
example_operator_perf_test.py
find_optimizer_opset_version_updates_required.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
fix_long_lines.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
gen_contrib_doc.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
gen_opkernel_doc.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
gen_ort_mobile_pkg_doc.py
get_submodules.py
onnx2tfevents.py Disable PERF* rules in ruff to allow better readability (#16834) 2023-07-25 15:38:22 -07:00
onnx_test_data_utils.py Various test infra updates from testing Azure ops with MAUI test app (#17262) 2023-08-27 09:35:00 +10:00
ort_test_dir_utils.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
PythonTools.md
remove_initializer_from_input.py
run_adb.py
run_android_emulator.py Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
run_CIs_for_branch.py Update script to run CIs for a branch. (#19797) 2024-03-08 17:52:47 +10:00
run_CIs_for_external_pr.py [tools] update pipeline list for run_CIs_for_external_pr.py (#20776) 2024-05-23 10:38:42 -07:00
sparsify_initializers.py [Linter] Bump ruff and remove pylint (#17797) 2023-10-05 21:07:33 -07:00
update_version.py [js] add API that allows to get package version (#16207) 2023-06-09 16:18:53 -07:00