Skip to content

fix: rewrite avg pool as 2-d nchw fchw convolution - #2772

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_884566739
Mar 24, 2026
Merged

fix: rewrite avg pool as 2-d nchw fchw convolution#2772
copybara-service[bot] merged 1 commit into
mainfrom
test_884566739

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

fix: rewrite avg pool as 2-d nchw fchw convolution

This fixes the bug where before the avg pooling was split into per-channel 2d convolutions, but that was incorrect since that doesn't properly compute the average since linalg.conv_2d doesnt support striding.

This temporarily disables lenet since that includes the pooling layer

Fixes #2702

@copybara-service
copybara-service Bot force-pushed the test_884566739 branch 4 times, most recently from 1f416bf to 7d8d7c1 Compare March 24, 2026 15:58
This fixes the bug where before the avg pooling was split into per-channel 2d convolutions, but that was incorrect since that doesn't properly compute the average since linalg.conv_2d doesnt support striding.

This temporarily disables lenet since that includes the pooling layer

Fixes #2702

PiperOrigin-RevId: 888710468
@copybara-service
copybara-service Bot merged commit a6e793a into main Mar 24, 2026
@copybara-service
copybara-service Bot deleted the test_884566739 branch March 24, 2026 16:38
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.

bug? average pooling to convolution issue

1 participant