onnxruntime/tools/python
Scott McKay e7a524fea9
Update to allow large models to be checked for mobile support. (#18357)
### Description
<!-- Describe your changes. -->
Update usability checker and related infrastructure to support checking
models > 2GB.
- Add ability to set flag to keep initializers as external data
- we optimize the model as part of the checking so need to write out a
new copy.
- Handle issue with ONNX shape inferencing silently failing
- use API that supports large models but requires writing the model to a
new file
  - automate cleanup of that copy of the model

### 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. -->
Allow analysis of LLMs to determine gaps for mobile usage.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-11-17 07:20:16 +10:00
..
util Update to allow large models to be checked for mobile support. (#18357) 2023-11-17 07:20:16 +10:00
__init__.py
check_onnx_model_mobile_usability.py
convert_onnx_models_to_ort.py
create_reduced_build_config.py
dump_ort_model.py
dump_subgraphs.py
example_operator_perf_test.py
find_optimizer_opset_version_updates_required.py
fix_long_lines.py
gen_contrib_doc.py
gen_opkernel_doc.py
gen_ort_mobile_pkg_doc.py
get_submodules.py
onnx2tfevents.py
onnx_test_data_utils.py
ort_test_dir_utils.py
PythonTools.md
remove_initializer_from_input.py
run_adb.py
run_android_emulator.py
run_CIs_for_external_pr.py
sparsify_initializers.py
update_version.py