ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
Find a file
Adrian Lizarraga a47254eaef
Remove empty (DQ -> Q -> graph output) sequence in TransposeOptimizer (#22172)
### Description
Updates the TransposeOptimizer to also remove empty (DQ -> Q) sequences
that occur at a graph output. An empty DQ->Q sequence results from a
Transpose being optimized out.

Consider the following example model:

![image](https://github.com/user-attachments/assets/4e7bc4eb-ea8a-463b-9672-c4ec5ef779b2)

The TransposeOptimizer removes the final Transpose and leaves an empty
DQ->Q->output_0 sequence. This PR ensures that the final DQ->Q is also
removed.

### Motivation and Context
Models with quantized output can run on QNN EP. The inference latency of
a customer model is impacted by the unnecessary DQ->Q sequence at the
output.

---------

Co-authored-by: Scott McKay <skottmckay@gmail.com>
2024-09-24 21:02:17 -07:00
.config
.devcontainer
.gdn
.github Get build working on Xcode 16 (#22168) 2024-09-24 08:33:03 -07:00
.pipelines [DML EP] Update DML to 1.15.1 (#21695) 2024-08-12 14:16:43 -07:00
.vscode Stop VSCode appending file associations to settings.json (#21944) 2024-08-31 19:04:12 -07:00
cgmanifests Upgrade XNNPACK to latest version (#22012) 2024-09-17 10:12:16 -07:00
cmake Get build working on Xcode 16 (#22168) 2024-09-24 08:33:03 -07:00
csharp Fix C# doc generation workflow (#21988) 2024-09-05 13:54:17 +10:00
dockerfiles [CUDA] Update Dockerfile.cuda with cuda 12.5.1 and cudnn 9 (#21987) 2024-09-05 15:25:40 -07:00
docs Add MLFloat16 support for LayerNormalization, SkipLayerNormalization (#22063) 2024-09-24 15:06:27 -07:00
include/onnxruntime/core Set enable_htp_fp16_precision default to true (#22186) 2024-09-24 09:37:53 -07:00
java [java] Migrate OnnxTensors created from arrays over to a backing Java buffer (#18556) 2024-09-24 15:36:52 +10:00
js upgrade micromatch to v4.0.8 (#22174) 2024-09-23 14:39:32 -07:00
objectivec
onnxruntime Remove empty (DQ -> Q -> graph output) sequence in TransposeOptimizer (#22172) 2024-09-24 21:02:17 -07:00
orttraining Move Gelu and LayerNorm fusion to L1 optimization (#21332) 2024-09-09 13:27:52 +10:00
rust Fix typos according to reviewdog report. (#21335) 2024-07-22 13:37:32 -07:00
samples
tools Remove training pipelines from Win CPI CI as redundant (#22190) 2024-09-23 18:15:41 -07:00
winml Fix warnings (#21809) 2024-08-21 14:23:37 -07:00
.clang-format
.clang-tidy
.dockerignore
.gitattributes Fix typos according to reviewdog report. (#21335) 2024-07-22 13:37:32 -07:00
.gitignore
.gitmodules Revert "Upgrade emsdk from 3.1.59 to 3.1.62" (#21817) 2024-08-22 11:21:00 -07:00
.lintrunner.toml [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00
build.bat
build.sh
build_arm64x.bat
CITATION.cff
CODEOWNERS
CONTRIBUTING.md
lgtm.yml
LICENSE
NuGet.config Update C# test projects (#21631) 2024-09-05 08:21:23 +10:00
ort.wprp
ORT_icon_for_light_bg.png
packages.config [DML EP] Update DML to 1.15.1 (#21695) 2024-08-12 14:16:43 -07:00
pyproject.toml Ignore ruff rule N813 (#21477) 2024-07-24 17:48:22 -07:00
README.md Add BrowserStack mention to project ReadMe (#22207) 2024-09-24 17:14:14 -07:00
requirements-dev.txt
requirements-doc.txt
requirements-lintrunner.txt Update lintrunner requirements (#22185) 2024-09-23 18:27:16 -07:00
requirements-training.txt
requirements.txt Add compatibility for NumPy 2.0 (#21085) 2024-06-27 13:50:53 -07:00
SECURITY.md
setup.py [qnn ep] fix naming convention of ort-nightly-qnn package (#22157) 2024-09-19 17:33:31 -07:00
ThirdPartyNotices.txt Fix typos according to reviewdog report. (#21335) 2024-07-22 13:37:32 -07:00
VERSION_NUMBER bumps up version in main from 1.19 -> 1.20 (#21588) 2024-08-05 15:46:04 -07:00

ONNX Runtime is a cross-platform inference and training machine-learning accelerator.

ONNX Runtime inference can enable faster customer experiences and lower costs, supporting models from deep learning frameworks such as PyTorch and TensorFlow/Keras as well as classical machine learning libraries such as scikit-learn, LightGBM, XGBoost, etc. ONNX Runtime is compatible with different hardware, drivers, and operating systems, and provides optimal performance by leveraging hardware accelerators where applicable alongside graph optimizations and transforms. Learn more →

ONNX Runtime training can accelerate the model training time on multi-node NVIDIA GPUs for transformer models with a one-line addition for existing PyTorch training scripts. Learn more →

Get Started & Resources

Builtin Pipeline Status

System Inference Training
Windows Build Status
Build Status
Build Status
Linux Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Mac Build Status
Android Build Status
iOS Build Status
Web Build Status
Other Build Status

This project is tested with BrowserStack.

Third-party Pipeline Status

System Inference Training
Linux Build Status

Data/Telemetry

Windows distributions of this project may collect usage data and send it to Microsoft to help improve our products and services. See the privacy statement for more details.

Contributions and Feedback

We welcome contributions! Please see the contribution guidelines.

For feature requests or bug reports, please file a GitHub Issue.

For general discussion or questions, please use GitHub Discussions.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

This project is licensed under the MIT License.