Skip to content

Add Implicit Padding for 3D average pooling#2291

Closed
houseroad wants to merge 1 commit intopytorch:masterfrom
houseroad:avg3d_padding
Closed

Add Implicit Padding for 3D average pooling#2291
houseroad wants to merge 1 commit intopytorch:masterfrom
houseroad:avg3d_padding

Conversation

@houseroad
Copy link
Member

@houseroad houseroad commented Aug 4, 2017

Add implicit zero padding in module AvgPool3d.

Interface change:
AvgPool3d(kernel_size, stride) ==> AvgPool3d(kernel_size, stride[, padding, ceil_mode, count_include_pad])

Test:
Add 4 test cases in test/test_nn.py.
Manually check the results of small input.
Manually test with large input.

Additional change:
The existing test cases work fine. No additional change is needed.

@soumith
Copy link
Collaborator

soumith commented Aug 26, 2017

this is now merged into master. thanks a lot @houseroad !

@soumith soumith closed this Aug 26, 2017
zou3519 pushed a commit to zou3519/pytorch that referenced this pull request Mar 30, 2018
houseroad added a commit to houseroad/pytorch that referenced this pull request Sep 19, 2019
…66d486 (pytorch#26441)

Summary:
Pull Request resolved: pytorch#26441

Previous import was 1316afc9f972f81340faa05763e2898f38bcc3b0

Included changes:
- **[23bb6ea1](onnx/onnx@23bb6ea1)**: Gemm optional bias (pytorch#2330) <James Allingham>
- **[1ac1f219](onnx/onnx@1ac1f219)**: Changes for AIX platform (pytorch#1913) <kavanabhat>
- **[13b026f5](onnx/onnx@13b026f5)**: Updated test cases for reshape (pytorch#2127) <James Allingham>
- **[97fcfe30](onnx/onnx@97fcfe30)**: Replace is by == (pytorch#2326) <G. Ramalingam>
- **[3b5601e6](onnx/onnx@3b5601e6)**: Updated docs for strides and dilations attributes  (pytorch#2291) <James Allingham>
- **[d0c697b1](onnx/onnx@d0c697b1)**: Revamped test cases for Gemm (pytorch#2060) <James Allingham>
- **[a3955c3c](onnx/onnx@a3955c3c)**: Add more shape inference tests for Logical operators to improve coverage (pytorch#2133) <Hariharan Seshadri>
- **[e2e12d97](onnx/onnx@e2e12d97)**: Change incorrect use of ValueError to TypeError (pytorch#2304) <prcvih>
- **[1f4b5f8c](onnx/onnx@1f4b5f8c)**: Support dynamic 'pads' and 'value' in Pad operator (pytorch#2031) <Hariharan Seshadri>

Test Plan: ci

Differential Revision: D17466717

fbshipit-source-id: cf62916a92cf457adcc53c48f40f0d18cd11e034
facebook-github-bot pushed a commit that referenced this pull request Sep 24, 2019
…66d486 (#26441)

Summary:
Pull Request resolved: #26441

Previous import was 1316afc9f972f81340faa05763e2898f38bcc3b0

Included changes:
- **[23bb6ea1](onnx/onnx@23bb6ea1)**: Gemm optional bias (#2330) <James Allingham>
- **[1ac1f219](onnx/onnx@1ac1f219)**: Changes for AIX platform (#1913) <kavanabhat>
- **[13b026f5](onnx/onnx@13b026f5)**: Updated test cases for reshape (#2127) <James Allingham>
- **[97fcfe30](onnx/onnx@97fcfe30)**: Replace is by == (#2326) <G. Ramalingam>
- **[3b5601e6](onnx/onnx@3b5601e6)**: Updated docs for strides and dilations attributes  (#2291) <James Allingham>
- **[d0c697b1](onnx/onnx@d0c697b1)**: Revamped test cases for Gemm (#2060) <James Allingham>
- **[a3955c3c](onnx/onnx@a3955c3c)**: Add more shape inference tests for Logical operators to improve coverage (#2133) <Hariharan Seshadri>
- **[e2e12d97](onnx/onnx@e2e12d97)**: Change incorrect use of ValueError to TypeError (#2304) <prcvih>
- **[1f4b5f8c](onnx/onnx@1f4b5f8c)**: Support dynamic 'pads' and 'value' in Pad operator (#2031) <Hariharan Seshadri>

Test Plan: ci

Reviewed By: hl475

Differential Revision: D17466717

fbshipit-source-id: 0f89a7a5a821d2c693492c99b4bebd5966e21d9f
rraminen pushed a commit to rraminen/pytorch that referenced this pull request Jul 9, 2025
…rch#2291)

cherry-pick of
pytorch@085f270
in rocm/pytorch:release/2.7

Co-authored-by: Doru Bercea, Glen Cao <glen.cao@amd.com>
rraminen pushed a commit to rraminen/pytorch that referenced this pull request Aug 7, 2025
…rch#2291)

cherry-pick of
pytorch@085f270
in rocm/pytorch:release/2.7

Co-authored-by: Doru Bercea, Glen Cao <glen.cao@amd.com>
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