Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25159
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 5 PendingAs of commit 95a522c with merge base d811540 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude review effort=max |
|
Claude finished @rascani's task in 29m 17s —— View job I found no numeric bugs, but I'm requesting changes: the runtime wrapper never checks its redundant PR Review: #25159: [Espressif] Lower Fused Quant depthwise convolutionSummaryThe PR lowers Fused Quant depthwise Conv2d (
This was a static review. pytest could not be run here and the ESP-NN v1.5.0 sources were not available, so claims about vendor behavior are marked unverified. Infrastructure
Testing
Code Quality
Specific Comments
RecommendationRequest Changes None of the findings is a numeric bug. Two things should land with the new op:
The CI |
8c6a6a5 to
2d8d886
Compare
|
@claude /pr-review Please review the current revision ( |
|
Claude finished @rascani's task in 30m 46s —— View job Most of the previous review's test and CI findings are fixed, but I'm still requesting changes. The wrapper still never checks PR Review: #25159: [Espressif] Lower Fused Quant depthwise convolution (re-review of
|
2d8d886 to
8d0b0a1
Compare
|
@claude /pr-review Please re-review the current revision ( The scratch size-query fallback from #25154 is preserved for depthwise, with a regression using an actual rejected vendor scratch bound that verifies numerical fallback and serialization. Please re-check the earlier finding that a size-query ValueError aborted export. Focused depthwise checks and 969 combined host tests at the stack tip passed with rebuilt sizing bindings. Runtime wrappers retain the agreed bounds-checking contract, with semantic eligibility checked during AOT lowering. |
|
Claude encountered an error after 25m 58s —— View job The earlier size-query PR Review: #25159: [Espressif] Lower Fused Quant depthwise convolution (re-review of
|
93fce0f to
00056dc
Compare
47ee335 to
366d92f
Compare
Lower static int8 depthwise Conv2d through ESP-NN with positive channel multipliers, unit dilation, per-output-channel symmetric weights, and derived int32 bias. Reuse convolution parameter preparation and target- selected scratch queries, packing constant weights from OHWI to 1HWO at export. Unsupported configurations retain portable convolution. Pass planned scratch explicitly to the depthwise operator. The wrapper checks buffer capacities and vendor indexing bounds before setting the scratch pointer and executing each batch. Recognize depthwise layout boundaries in strict export. Validated 214 Python tests across focused and regression runs, all 27 ESP32-S3 emulator cases, and lintrunner. Shared model cases cover vendor SIMD and C dispatch, channel multipliers, rectangular kernels, batches, float users, shared bias, repeated inference, and portable fallback. Native checks also cover undersized scratch and ANSI zero-byte scratch. Authored with OpenAI Codex.
Exercise a valid depthwise convolution that passes lowering's bounds but is rejected by the sizing binding's more conservative arithmetic guard. Verify portable numerical behavior and serialization through the common scratch-rejection fallback. Validated 45 host depthwise and convolution-fallback tests with freshly built sizing bindings. Authored with OpenAI Codex.
Reject output windows that extend beyond the padded input before passing dimensions to ESP-NN. This prevents inconsistent operator arguments from overflowing vendor scratch-size arithmetic or reading beyond padded storage. The ESP32-S3 emulator rejects independently corrupted height and width strides at the new kernel check. Three normal padded, strided, and channel-multiplier cases continue to pass. Authored with OpenAI Codex.
Keep S3 sizing-bound tests explicitly on S3 while device validation follows the selected target. Skip the undersized-scratch check for kernels that need no scratch and locate the invalid-window diagnostic in the selected chip and kernel-mode directory. Authored with OpenAI Codex.
Require compute coverage for the supported depthwise recipe while checking its reported layout copies and serialized program. Keep strict rejection of unsupported dilation. Authored with OpenAI Codex.
Lower supported Fused Quant depthwise Conv2d calls to ESP-NN, building on #25154 and the scratch bindings in #25157. Support covers static int8 tensors, positive integer channel multipliers, unit dilation, constant per-output-channel symmetric weights, and optional derived int32 bias. Unsupported configurations retain portable convolution.
Export packs constant weights from OHWI to ESP-NN's 1HWO order and allocates an explicit scratch Tensor using the selected chip/kernel query. The wrapper checks capacities and vendor indexing bounds, then uses the vendor dispatcher for SIMD or C execution. Required NHWC boundary copies remain visible in the report.
Review quantization and lowering first, then the schema/reference, wrapper, and shared cases. Tests include hardcoded asymmetric scratch-size expectations across profiles, memory-plan non-overlap, missing-binding fallback, padding bounds, multipliers, batch output alignment, and no-bias paths. S3 sizing-bound checks explicitly select S3. Device checks follow the selected chip, and the undersized-buffer test skips kernels that require no scratch.
Validation: depthwise host tests pass, including chip selection and scratch-query fallback. Five targeted optimized-S3 emulator cases passed: multiplier/stride/padding, unaligned batched output, unpadded stride, no bias, and undersized scratch. Scoped lint passed. Existing vendor depthwise defects remain deferred upstream; other chips have sizing/export coverage only.
Authored with OpenAI Codex.