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

Fix the duplicated QDQ attributes setup issue #18039

Merged
merged 6 commits into from
Jan 11, 2024
Merged

Conversation

vera121
Copy link
Contributor

@vera121 vera121 commented Oct 20, 2023

Description

The copied QDQ node should have exactly the same attributes as the original QDQ node. Otherwise, it might cause errors when the original node has attributes that use non default values (such as axis != 1 case).

An example user case is like:
A DequantizeLinear node has more than 1 consumer in the graph, and its attributes axis is 0.

Motivation and Context

I see the errors like
#16188
and this fix could solve the issue.

The copied QDQ node should have exactly the same attributes as the original QDQ node. Otherwise, it might cause errors when the original node has attributes that use non default values (such as axis != 1 case).
@edgchen1
Copy link
Contributor

thanks for the fix. could you please also add a unit test for it?

Copy link
Contributor

@edgchen1 edgchen1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding the test. just had one comment about it.

@edgchen1
Copy link
Contributor

/azp run Linux CPU CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@edgchen1
Copy link
Contributor

/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, Linux QNN CI Pipeline

@edgchen1
Copy link
Contributor

/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows ARM64 QNN CI Pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, ONNX Runtime React Native CI Pipeline, Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@edgchen1
Copy link
Contributor

/azp run Linux MIGraphX CI Pipeline, orttraining-amd-gpu-ci-pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@edgchen1
Copy link
Contributor

the PR looks pretty good to me.

the formatting check is complaining:
https://github.com/microsoft/onnxruntime/actions/runs/6634815370/job/18060070638?pr=18039

please run clang-format on the modified files. this is one way to set that up:
https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#linting

@edgchen1
Copy link
Contributor

/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, Linux QNN CI Pipeline

@edgchen1
Copy link
Contributor

/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows ARM64 QNN CI Pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, ONNX Runtime React Native CI Pipeline, Windows x64 QNN CI Pipeline

@edgchen1
Copy link
Contributor

/azp run Linux MIGraphX CI Pipeline, orttraining-amd-gpu-ci-pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@edgchen1
Copy link
Contributor

@vera121 I think this PR is almost ready to merge. would you mind taking a look at the Contributor License Agreement?

#18039 (comment)

@vera121
Copy link
Contributor Author

vera121 commented Oct 31, 2023

@vera121 I think this PR is almost ready to merge. would you mind taking a look at the Contributor License Agreement?

#18039 (comment)

Hello @edgchen1
Thanks for the remind. I am consulting my company's legal department to get their approval for this assigment. After that I will reply to that message and notify you as well.

@edgchen1
Copy link
Contributor

edgchen1 commented Dec 1, 2023

@vera121 I think this PR is almost ready to merge. would you mind taking a look at the Contributor License Agreement?
#18039 (comment)

Hello @edgchen1 Thanks for the remind. I am consulting my company's legal department to get their approval for this assigment. After that I will reply to that message and notify you as well.

Hi @vera121, just wanted to follow up on this PR. were you able to get the necessary approvals?

@vera121
Copy link
Contributor Author

vera121 commented Dec 4, 2023

@vera121 I think this PR is almost ready to merge. would you mind taking a look at the Contributor License Agreement?
#18039 (comment)

Hello @edgchen1 Thanks for the remind. I am consulting my company's legal department to get their approval for this assigment. After that I will reply to that message and notify you as well.

Hi @vera121, just wanted to follow up on this PR. were you able to get the necessary approvals?

Hello @edgchen1 Thanks for the remind. Yes, I didn't forget this but our company's legal department is still running the reviewing process (you know such process usually might take a while). I will notify you and submit the CLA as soon as they finish. Thanks very much.

@vera121
Copy link
Contributor Author

vera121 commented Jan 11, 2024

@vera121 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree [company="Synopsys"]

@vera121
Copy link
Contributor Author

vera121 commented Jan 11, 2024

@vera121 I think this PR is almost ready to merge. would you mind taking a look at the Contributor License Agreement?
#18039 (comment)

Hello @edgchen1 Thanks for the remind. I am consulting my company's legal department to get their approval for this assigment. After that I will reply to that message and notify you as well.

Hi @vera121, just wanted to follow up on this PR. were you able to get the necessary approvals?

Hello @edgchen1 Sorry for the long wait. Now we finally got the approval from our company's legal department. Please check my reply and go on with the merge.
Thanks very much for the help!

@vera121
Copy link
Contributor Author

vera121 commented Jan 11, 2024

@vera121 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Synopsys"

@edgchen1 edgchen1 merged commit 5678317 into microsoft:main Jan 11, 2024
68 of 70 checks passed
@edgchen1
Copy link
Contributor

great, just in time for the 1.17 release! thanks again for the fix!

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