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

【PIR API adaptor No.284, 293】 Migrate paddle.Tensor.nanquantile and paddle.Tensor.quantile into pir #59572

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

xiaoyewww
Copy link
Contributor

@xiaoyewww xiaoyewww commented Nov 30, 2023

PR types

Others

PR changes

APIs

Description

PIR API 推全升级

#58067

No.284 将 paddle.Tensor.nanquantile迁移升级至 pir,并更新单测,单测覆盖率:1/2。

nanquantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 test_nanquantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式

No.293 将 paddle.Tensor.quantile迁移升级至 pir,并更新单测,单测覆盖率:1/2。

quantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 TestSundryAPIStatic.test_quantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式

@paddle-bot paddle-bot bot added the contributor External developers label Nov 30, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Dec 1, 2023
Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

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

LGTM~
可以在 pr 描述里写一下:

  1. nanquantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 test_nanquantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式
  2. quantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 TestSundryAPIStatic.test_quantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式

然后分别更新一下 nanquantile 和 quantile 的单测覆盖率

@xiaoyewww
Copy link
Contributor Author

LGTM~ 可以在 pr 描述里写一下:

  1. nanquantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 test_nanquantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式
  2. quantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 TestSundryAPIStatic.test_quantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式

然后分别更新一下 nanquantile 和 quantile 的单测覆盖率

LGTM~ 可以在 pr 描述里写一下:

  1. nanquantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 test_nanquantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式
  2. quantile 在 test/legacy_test/test_zero_dim_tensor.py 里的 TestSundryAPIStatic.test_quantile 单测暂不支持。因为 paddle.static.append_backward 尚未支持 pir 模式

然后分别更新一下 nanquantile 和 quantile 的单测覆盖率

已修改,感谢~

@0x45f
Copy link
Contributor

0x45f commented Dec 4, 2023

代码冲突了,辛苦解决下冲突~

@xiaoyewww xiaoyewww force-pushed the new-ir/quantile_and_nanquantile branch from d2c6716 to 8d28aad Compare December 7, 2023 14:30
@xiaoyewww
Copy link
Contributor Author

代码冲突了,辛苦解决下冲突~

不好意思之前忘记了,已解决冲突,麻烦再review一下~

Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

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

nice work ~ 有些小地方需要修改
还需要 pre-commit 一下

python/paddle/tensor/stat.py Outdated Show resolved Hide resolved
Copy link
Contributor

@MarioLulab MarioLulab left a comment

Choose a reason for hiding this comment

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

LGTM

python/paddle/tensor/stat.py Outdated Show resolved Hide resolved
@0x45f 0x45f merged commit cb5ff84 into PaddlePaddle:develop Dec 12, 2023
29 checks passed
@xiaoyewww xiaoyewww deleted the new-ir/quantile_and_nanquantile branch May 10, 2024 15:10
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.

None yet

5 participants