Skip to content

Conversation

@SZTULDH
Copy link

@SZTULDH SZTULDH commented Oct 28, 2025

[used AI Studio]

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

编译中发现,由于编译配置编译不出该单测,于是,在test/legacy_test/CMakeLists.txt中,取消对test_conv2d_transpose_op的跳过。

在非PIR模式下,当out_channels=0时会正确抛出ValueError异常,提示"num of filters should not be 0";但是在PIR模式下,相同的参数设置没有抛出异常,导致断言检查失效,产生报错。

因此,将原来的断言检查:self.assertRaises(AssertionError, error_0_filter_number)修改为直接调用函数:
error_0_filter_number()

Correctly throws ValueError: num of filters should not be 0 when out_channels=0
Removed the incorrect AssertionError expectation
Updated test_pir_exception method in test_conv2d_transpose_op.py
Remove the compilation skip of test_conv2d_transpose_op in CMake
@paddle-bot
Copy link

paddle-bot bot commented Oct 28, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Oct 28, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Oct 30, 2025
@luotao1
Copy link
Contributor

luotao1 commented Oct 30, 2025

windows流水线单侧失败
image

@SZTULDH
Copy link
Author

SZTULDH commented Oct 30, 2025

/re-run all-failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants