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

Add fold opereators #38613

Merged
merged 6 commits into from
Dec 31, 2021
Merged

Add fold opereators #38613

merged 6 commits into from
Dec 31, 2021

Conversation

tink2123
Copy link
Contributor

@tink2123 tink2123 commented Dec 30, 2021

PR types

New features

PR changes

APIs

Describe

add fold opereators

import paddle.nn as nn
import paddle
data = paddle.randn([2,3*2*2,12]).astype("float32")
fold = nn.Fold(output_sizes=(4, 5), kernel_sizes=2)
output = fold(data)
# output.shape = [2,3,4,5]

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

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

LGTM

@tink2123 tink2123 merged commit 8898dce into PaddlePaddle:develop Dec 31, 2021
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