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

[PaddlePaddle Hackathon] 48. add pytest of paddle.nn.functional.conv1d_transpose #262

Conversation

OccupyMars2025
Copy link
Contributor

PR types
New features

PR changes
add framework/api/nn/test_functional_conv1d_transpose.py

Describe
Task: PaddlePaddle/Paddle#35957
add pytest of paddle.nn.functional.conv1d_transpose

kolinwei
kolinwei previously approved these changes Oct 27, 2021
weight = np.full(shape=[in_channels, out_channels // groups] + kernel_size, fill_value=1)
bias = np.full(shape=[out_channels], fill_value=0)
stride = 1
padding = 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

padding需要多测一下,可以参照文档的描述,增加不同类型下的case,其他的输入参数类似
padding (int|list|tuple|str,可选) - 填充大小。可以是以下三种格式:(1)字符串,可以是"VALID"或者"SAME",表示填充算法,计算细节可参考下述 padding = "SAME"或 padding = "VALID" 时的计算公式。(2)整数,表示在输入特征两侧各填充 padding 大小的0。(3)包含一个整数的列表或元组,表示在输入特征两侧各填充 padding[0] 大小的0. 默认值:0。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#251 类似,已增加更多关于padding的测试,

@DDDivano DDDivano merged commit 4a9ba57 into PaddlePaddle:develop Oct 29, 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.

3 participants