Skip to content

【PIR API adaptor No.171】Migrate paddle.vision.ops.PSRoIPool into pir - #60353

Merged
0x45f merged 6 commits into
PaddlePaddle:developfrom
ooooo-create:pir171
Jan 16, 2024
Merged

0x45f merged 6 commits into
PaddlePaddle:developfrom
ooooo-create:pir171

Conversation

@ooooo-create

@ooooo-create ooooo-create commented Dec 26, 2023 •

Copy link
Copy Markdown
Collaborator

PR types

Others

PR changes

APIs

Description

link #58067
PIR API 推全升级
将 paddle.vision.ops.PSRoIPool 迁移升级至 pir,并更新单测
单测覆盖率: 1/8
继承自optest的单侧未开启,暂不支持 lod操作

@paddle-bot

paddle-bot Bot commented Dec 26, 2023

Copy link
Copy Markdown

你的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 Dec 26, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Dec 26, 2023

@MarioLulab MarioLulab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TestPSROIPoolStaticAPI 单测的输入 self.boxes_placeholder 仍然有 lod_level 。但目前 pir 模式暂不支持 lod 输入,可以考虑在 test/legacy_test/test_psroi_pool_op.py 文件下新增一个 pir 单测

Comment thread test/legacy_test/test_psroi_pool_op.py Resolved
Comment thread test/legacy_test/test_psroi_pool_op.py Resolved
Comment thread test/legacy_test/test_psroi_pool_op.py Resolved

@MarioLulab MarioLulab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread test/legacy_test/test_psroi_pool_op.py Outdated

class TestPSROIPoolStaticAPI_NOLOD(unittest.TestCase):
def setUp(self):
paddle.enable_static()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

在测试case里用了IrGuard是不是不需要手动切到静态图了?在setUp里切到静态图可能会影响后续单测运行时的模式,这里删掉 paddle.enable_static() 试试呢

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

好嘟~

@paddle-ci-bot

paddle-ci-bot Bot commented Jan 7, 2024

Copy link
Copy Markdown

Sorry to inform you that a0f04ee's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@MarioLulab MarioLulab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

o 师傅最近还有时间来推进这个 pr 吗~

Comment thread test/legacy_test/test_psroi_pool_op.py Resolved
@ooooo-create

Copy link
Copy Markdown
Collaborator Author

o 师傅最近还有时间来推进这个 pr 吗~
刚有~~

@0x45f
0x45f merged commit 5b3bc50 into PaddlePaddle:develop Jan 16, 2024
@ooooo-create
ooooo-create deleted the pir171 branch March 8, 2025 04:09
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.

5 participants