Skip to content
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

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

zhangsibo1129
Copy link
Contributor

Description

Replace the constructor function MLFloat16() with the public member function FromBits() in the file onnxruntime/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 function MLFloat16::FromBits(uint16_t x) in the file include/onnxruntime/core/framework/float16.h, which broke the CANN CI.

This PR aligns the CANN behavior with the modified class MLFloat16.

@jywu-msft
Copy link
Member

/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
Copy link

No commit pushedDate could be found for PR 16733 in repo microsoft/onnxruntime

@jywu-msft
Copy link
Member

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.

@jywu-msft
Copy link
Member

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.

@jywu-msft
Copy link
Member

need to close and re-open this PR to workaround issue kicking off CI's.

@jywu-msft jywu-msft closed this Jul 17, 2023
@jywu-msft jywu-msft reopened this Jul 17, 2023
@jywu-msft
Copy link
Member

/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
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@jywu-msft
Copy link
Member

/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

@jywu-msft
Copy link
Member

/azp run Linux QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jywu-msft jywu-msft merged commit 9ba5cdb into microsoft:main Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants