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

Register PRelu into quantization ops #20686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UsingtcNower
Copy link

Description

Motivation and Context

@UsingtcNower
Copy link
Author

@adrianlizarraga @xadupre Could you please help to review it?

@adrianlizarraga
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

Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@adrianlizarraga
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, Windows x64 QNN CI Pipeline, Linux MIGraphX CI Pipeline, Big Models

Copy link

Azure Pipelines successfully started running 10 pipeline(s).

@adrianlizarraga
Copy link
Contributor

/azp run ONNX Runtime React Native CI Pipeline, orttraining-amd-gpu-ci-pipeline, Linux Android Emulator QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@adrianlizarraga adrianlizarraga left a comment

Choose a reason for hiding this comment

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

Hi @UsingtcNower, could you please add a unit test to verify functionality? The unit tests are located here: https://github.com/microsoft/onnxruntime/tree/main/onnxruntime/test/python/quantization

To run them locally:

  • Build onnxruntime locally with the --build_wheel option.
  • Install the locally built onnxruntime python wheel in build/<Config>/<Config>/dist/
  • Go to test directory: cd onnxruntime/test/python/quantization
  • Run all unit tests: python -m unittest
    • Or, run a specific unit test file: python -m unittest test_op_conv_dynamic.py

@@ -60,6 +60,7 @@
"Concat": QLinearConcat,
"Softmax": QLinearSoftmax,
"Where": QLinearWhere,
"PRelu": QLinearActivation,
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe QLinearActivation would need to be updated to properly handle "PRelu". Onnxruntime doesn't have a QLinearPRelu operator.

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.

None yet

2 participants