├── .azure-pipelines ├── main-template.yml ├── nightly-CI.yml ├── official.yml └── pr.yml ├── .config └── tsaoptions.json ├── .flake8 ├── .github └── workflows │ ├── codeql-analysis.yml │ ├── linux-CI.yml │ └── windows-CI.yml ├── .gitignore ├── .lintrunner.toml ├── .vscode └── launch.json ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── NOTICE ├── README.md ├── SECURITY.md ├── manually-publish.yml ├── onnxconverter_common ├── __init__.py ├── _opt_const_folding.py ├── auto_mixed_precision.py ├── auto_mixed_precision_model_path.py ├── case_insensitive_dict.py ├── container.py ├── data_types.py ├── decast.py ├── float16.py ├── interface.py ├── metadata_props.py ├── onnx2py.py ├── onnx_ex.py ├── onnx_fx.py ├── onnx_ops.py ├── oopb.py ├── optimizer.py ├── perfstats.py ├── pytracing.py ├── registration.py ├── shape_calculator.py ├── topology.py ├── tree_ensemble.py └── utils.py ├── pyproject.toml ├── requirements-dev.txt ├── requirements.txt ├── setup.cfg ├── setup.py ├── tests ├── coreml_OneHotEncoder_BikeSharing.onnx ├── data │ ├── image_classifier32.onnx │ ├── mobile_segnet_no_opt.onnx │ ├── srgan_no_opt.onnx │ ├── test_model_0_no_opt.onnx │ ├── test_model_1_no_opt.onnx │ └── test_subgraph.onnx ├── test_auto_mixed_precision.py ├── test_auto_mixed_precision_model_path.py ├── test_data_types.py ├── test_decast.py ├── test_float16.py ├── test_onnx.py ├── test_onnx2py.py ├── test_onnxfx.py ├── test_onnxmltools.py ├── test_oopb.py ├── test_opt.py └── test_pytracing.py └── update_ops.py /.azure-pipelines/main-template.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.azure-pipelines/main-template.yml -------------------------------------------------------------------------------- /.azure-pipelines/nightly-CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.azure-pipelines/nightly-CI.yml -------------------------------------------------------------------------------- /.azure-pipelines/official.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.azure-pipelines/official.yml -------------------------------------------------------------------------------- /.azure-pipelines/pr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.azure-pipelines/pr.yml -------------------------------------------------------------------------------- /.config/tsaoptions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.config/tsaoptions.json -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | per-file-ignores = 4 | __init__.py:F401 5 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/linux-CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.github/workflows/linux-CI.yml -------------------------------------------------------------------------------- /.github/workflows/windows-CI.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.github/workflows/windows-CI.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.gitignore -------------------------------------------------------------------------------- /.lintrunner.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.lintrunner.toml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/SECURITY.md -------------------------------------------------------------------------------- /manually-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/manually-publish.yml -------------------------------------------------------------------------------- /onnxconverter_common/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/__init__.py -------------------------------------------------------------------------------- /onnxconverter_common/_opt_const_folding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/_opt_const_folding.py -------------------------------------------------------------------------------- /onnxconverter_common/auto_mixed_precision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/auto_mixed_precision.py -------------------------------------------------------------------------------- /onnxconverter_common/auto_mixed_precision_model_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/auto_mixed_precision_model_path.py -------------------------------------------------------------------------------- /onnxconverter_common/case_insensitive_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/case_insensitive_dict.py -------------------------------------------------------------------------------- /onnxconverter_common/container.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/container.py -------------------------------------------------------------------------------- /onnxconverter_common/data_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/data_types.py -------------------------------------------------------------------------------- /onnxconverter_common/decast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/decast.py -------------------------------------------------------------------------------- /onnxconverter_common/float16.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/float16.py -------------------------------------------------------------------------------- /onnxconverter_common/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/interface.py -------------------------------------------------------------------------------- /onnxconverter_common/metadata_props.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/metadata_props.py -------------------------------------------------------------------------------- /onnxconverter_common/onnx2py.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/onnx2py.py -------------------------------------------------------------------------------- /onnxconverter_common/onnx_ex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/onnx_ex.py -------------------------------------------------------------------------------- /onnxconverter_common/onnx_fx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/onnx_fx.py -------------------------------------------------------------------------------- /onnxconverter_common/onnx_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/onnx_ops.py -------------------------------------------------------------------------------- /onnxconverter_common/oopb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/oopb.py -------------------------------------------------------------------------------- /onnxconverter_common/optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/optimizer.py -------------------------------------------------------------------------------- /onnxconverter_common/perfstats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/perfstats.py -------------------------------------------------------------------------------- /onnxconverter_common/pytracing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/pytracing.py -------------------------------------------------------------------------------- /onnxconverter_common/registration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/registration.py -------------------------------------------------------------------------------- /onnxconverter_common/shape_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/shape_calculator.py -------------------------------------------------------------------------------- /onnxconverter_common/topology.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/topology.py -------------------------------------------------------------------------------- /onnxconverter_common/tree_ensemble.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/tree_ensemble.py -------------------------------------------------------------------------------- /onnxconverter_common/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/onnxconverter_common/utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | onnx>=1.18.0 2 | packaging 3 | -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [easy_install] 5 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/setup.py -------------------------------------------------------------------------------- /tests/coreml_OneHotEncoder_BikeSharing.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/coreml_OneHotEncoder_BikeSharing.onnx -------------------------------------------------------------------------------- /tests/data/image_classifier32.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/image_classifier32.onnx -------------------------------------------------------------------------------- /tests/data/mobile_segnet_no_opt.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/mobile_segnet_no_opt.onnx -------------------------------------------------------------------------------- /tests/data/srgan_no_opt.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/srgan_no_opt.onnx -------------------------------------------------------------------------------- /tests/data/test_model_0_no_opt.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/test_model_0_no_opt.onnx -------------------------------------------------------------------------------- /tests/data/test_model_1_no_opt.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/test_model_1_no_opt.onnx -------------------------------------------------------------------------------- /tests/data/test_subgraph.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/data/test_subgraph.onnx -------------------------------------------------------------------------------- /tests/test_auto_mixed_precision.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_auto_mixed_precision.py -------------------------------------------------------------------------------- /tests/test_auto_mixed_precision_model_path.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_auto_mixed_precision_model_path.py -------------------------------------------------------------------------------- /tests/test_data_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_data_types.py -------------------------------------------------------------------------------- /tests/test_decast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_decast.py -------------------------------------------------------------------------------- /tests/test_float16.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_float16.py -------------------------------------------------------------------------------- /tests/test_onnx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_onnx.py -------------------------------------------------------------------------------- /tests/test_onnx2py.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_onnx2py.py -------------------------------------------------------------------------------- /tests/test_onnxfx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_onnxfx.py -------------------------------------------------------------------------------- /tests/test_onnxmltools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_onnxmltools.py -------------------------------------------------------------------------------- /tests/test_oopb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_oopb.py -------------------------------------------------------------------------------- /tests/test_opt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_opt.py -------------------------------------------------------------------------------- /tests/test_pytracing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/tests/test_pytracing.py -------------------------------------------------------------------------------- /update_ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/microsoft/onnxconverter-common/HEAD/update_ops.py --------------------------------------------------------------------------------