Skip to content

Conversation

@Starrysea996
Copy link
Contributor

PR Category

User Experience

PR Types

New features

Description

add out parameter for tril and triu api

@paddle-bot
Copy link

paddle-bot bot commented Aug 14, 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.

diagonal: int = 0,
*,
out: paddle.Tensor | None = None,
name: str | None = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

新增指定关键字参数时,name就不动位置了

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是把*out放在name后面吗

def triu(
x: paddle.Tensor, diagonal: int = 0, name: str | None = None
x: paddle.Tensor,
diagonal: int = 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

同上

@codecov-commenter
Copy link

codecov-commenter commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@77cd6d6). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #74624   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         2           
  Lines              ?         3           
  Branches           ?         0           
===========================================
  Hits               ?         3           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

方案2:名称不同的地方。这个也需要下沉到C++

zhwesky2010
zhwesky2010 previously approved these changes Aug 19, 2025
Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@Starrysea996
Copy link
Contributor Author

/re-run all-failed

zhwesky2010
zhwesky2010 previously approved these changes Aug 20, 2025
@Starrysea996
Copy link
Contributor Author

/re-run all-failed

Copy link
Contributor

@DanielSun11 DanielSun11 left a comment

Choose a reason for hiding this comment

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

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@Starrysea996
Copy link
Contributor Author

/re-run all-failed

@Starrysea996
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@Starrysea996
Copy link
Contributor Author

/re-run all-failed

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@DanielSun11 DanielSun11 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@wanghuancoder wanghuancoder merged commit c4a6db9 into PaddlePaddle:develop Aug 25, 2025
135 of 146 checks passed
Luckycheng222 pushed a commit to Luckycheng222/Paddle that referenced this pull request Aug 25, 2025
* add tril and triu out parameter

* change the place of parameter name and out

* tril and triu api sink into C++

* add import tril and triu

* fix testcase

* fix testcase

* fix testcase

* fix testcase

* change position

* add compatibility test for tril and triu

* fix conflict

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants