Repository navigation
【PIR API adaptor No.75-76】Migrate some ops into pir - #59627
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
dirac 的迁移内部有同学在推进,这个 pr 可以先不做~ 麻烦复原吧,然后更新 pr 标题和 pr 描述
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
该文件下的 TestFoldOpError 单测是否支持?若不支持,请在 pr 描述里说明,并更新单测覆盖率
There was a problem hiding this comment.
这个需要支持吗?只是用来测试错误的
There was a problem hiding this comment.
错误检查也属于本次推全验证任务的一部分,原则上是需要支持的~ 如果尚不支持的话可以在 pr 描述里说明一下
|
麻烦还需要适配一下 fold 的单测 |
MarioLulab
left a comment
There was a problem hiding this comment.
nice work~
sigmoid_focal_loss 可以在 pr 描述里记录一下 test/legacy_test/test_zero_dim_tensor.py 文件里的单测 TestLossAPIStatic.test_sigmoid_focal_loss 由于 paddle.static.append_backward 尚未支持 pir 模式,所以先跳过该单测
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
|
||
| if in_dynamic_mode(): | ||
| if in_dynamic_or_pir_mode(): | ||
| place = _current_expected_place() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| ) | ||
|
|
||
| if in_dynamic_mode(): | ||
| if in_dynamic_or_pir_mode(): |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
|
||
|
|
||
| class TestFoldOpError(unittest.TestCase): | ||
| @test_with_pir_api |
There was a problem hiding this comment.
从 ci 的测试来看,当前 fold 的 test_errors 单测暂不支持,可以先跳过,然后在 pr 描述中说明:fold 的 test_errors 单测暂不支持
|
Dirac 的迁移已在 #59911 完成~ 麻烦修改一下当前的 pr 标题和 pr 描述吧 |
|
请问 long 师傅最近有时间推进这个 pr 吗 😃 |
我尽力这周弄下哈~,最近有点忙 |
好的辛苦啦~ 最近是年底了所以要摸个底,如果大伙提了 pr 但是由于没空而没法推进的话可以及时告知我,然后我转告 paddle 内部去继续推进 🐶 |
MarioLulab
left a comment
There was a problem hiding this comment.
Nice work ~ 但还有一些小问题
| return res | ||
|
|
||
|
|
||
| @test_with_pir_api |
There was a problem hiding this comment.
@test_with_pir_api 应该用来修饰下面的 TestSigmoidFocalLoss.test_SigmoidFocalLoss 函数,而非 test_static 函数。因为被 @test_with_pir_api 修饰的函数返回值为 None,会影响test_SigmoidFocalLoss的正常运行
|
done |
PR types
Others
PR changes
APIs
Description
PIR API 推全升级
将如下算子迁移升级至 pir,并更新单测
当前 fold 的 test_errors 单测暂不支持,可以先跳过,然后在 pr 描述中说明:fold 的 test_errors 单测暂不支持
test/legacy_test/test_zero_dim_tensor.py 文件里的单测 TestLossAPIStatic.test_sigmoid_focal_loss 由于 paddle.static.append_backward 尚未支持 pir 模式,所以先跳过该单测