Skip to content

Add C++ unit tests for cadence::quantized_conv2d_nhwc + add depthwise_nhwc operator + tests#18479

Merged
meta-codesync[bot] merged 1 commit intopytorch:mainfrom
hsharma35:export-D96507563
Apr 25, 2026
Merged

Add C++ unit tests for cadence::quantized_conv2d_nhwc + add depthwise_nhwc operator + tests#18479
meta-codesync[bot] merged 1 commit intopytorch:mainfrom
hsharma35:export-D96507563

Conversation

@hsharma35
Copy link
Copy Markdown
Contributor

@hsharma35 hsharma35 commented Mar 24, 2026

Summary: Add C++ unit tests for cadence::quantized_conv2d_nhwc.out using the kernel registry dispatch pattern, plus introduce the cadence::quantized_conv2d_depthwise_nhwc.out operator (registration in custom_ops.yaml + arg-validation in check_op_args.h) and its corresponding C++ test. The depthwise variant is added in the same diff because the channels-last NHWC test infrastructure is shared between the two and pulling them apart would require duplicating significant kernel-dispatch boilerplate. Both ops use BoxedEvalueList<int64_t> for IntArrayRef params (stride, padding, dilation). Part of the Python -> C++ operator test migration tracked in the jarvis-operator-testing box.

Reviewed By: zonglinpeng, RahulC7

Differential Revision: D96507563

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 24, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18479

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 Cancelled Job, 2 Unrelated Failures

As of commit d5c324b with merge base de8ce55 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Mar 24, 2026

@hsharma35 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96507563.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 24, 2026
@github-actions
Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync meta-codesync Bot changed the title Add C++ unit tests for cadence::quantized_conv2d_nhwc Add C++ unit tests for cadence::quantized_conv2d_nhwc (#18479) Mar 24, 2026
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 24, 2026
Summary:

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: pytorch#18479

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
@hsharma35 hsharma35 force-pushed the export-D96507563 branch 2 times, most recently from 70b6bd6 to 7f776c6 Compare March 25, 2026 16:57
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: pytorch#18479

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: pytorch#18479

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 25, 2026
Summary:
Pull Request resolved: pytorch#18479

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 26, 2026
Summary:

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
hsharma35 added a commit to hsharma35/executorch that referenced this pull request Mar 26, 2026
Summary:
Pull Request resolved: pytorch#18479

Add test_op_quantized_conv2d_nhwc.cpp covering 17 test combinations from the Python test_quantized_conv2d_nhwc_out. Tests cover Conv2d (4D NHWC) and Conv1d (3D NLC) variants including basic, stride, padding, and depthwise cases, using kernel registry dispatch.

Reviewed By: RahulC7

Differential Revision: D96507563
…_nhwc operator + tests

Summary: Add C++ unit tests for cadence::quantized_conv2d_nhwc.out using the kernel registry dispatch pattern, plus introduce the cadence::quantized_conv2d_depthwise_nhwc.out operator (registration in custom_ops.yaml + arg-validation in check_op_args.h) and its corresponding C++ test. The depthwise variant is added in the same diff because the channels-last NHWC test infrastructure is shared between the two and pulling them apart would require duplicating significant kernel-dispatch boilerplate. Both ops use BoxedEvalueList<int64_t> for IntArrayRef params (stride, padding, dilation). Part of the Python -> C++ operator test migration tracked in the jarvis-operator-testing box.

Reviewed By: zonglinpeng, RahulC7

Differential Revision: D96507563
@meta-codesync meta-codesync Bot changed the title Add C++ unit tests for cadence::quantized_conv2d_nhwc (#18479) Add C++ unit tests for cadence::quantized_conv2d_nhwc + add depthwise_nhwc operator + tests Apr 24, 2026
@meta-codesync meta-codesync Bot merged commit 5252704 into pytorch:main Apr 25, 2026
169 of 174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants