-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CANN EP] Fix Float16 support for CANN EP #16733
Conversation
/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux Nuphar CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, Windows CPU CI Pipeline, Windows GPU CI Pipeline |
No commit pushedDate could be found for PR 16733 in repo microsoft/onnxruntime |
@zhangsibo1129 any idea? the CI's couldn't be kicked off due to this. |
nevermind. it seems to be an issue with azure devops. |
need to close and re-open this PR to workaround issue kicking off CI's. |
/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux Nuphar CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, Windows CPU CI Pipeline, Windows GPU CI Pipeline |
Azure Pipelines successfully started running 9 pipeline(s). |
/azp run Windows GPU TensorRT CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, onnxruntime-python-checks-ci-pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed |
/azp run Linux QNN CI Pipeline |
Azure Pipelines successfully started running 5 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
Replace the constructor function
MLFloat16()
with the public member functionFromBits()
in the fileonnxruntime/core/providers/cann/cann_common.cc
Motivation and Context
PR #16506 changed the public constructor function
MLFloat16(uint16_t x)
to private, and added a public functionMLFloat16::FromBits(uint16_t x)
in the fileinclude/onnxruntime/core/framework/float16.h
, which broke the CANN CI.This PR aligns the CANN behavior with the modified class
MLFloat16
.