Skip to content

Conversation

@Enigmatisms
Copy link
Contributor

PR Category

Operator Mechanism

PR Types

Improvements

Description

修改了 ForbidKeywordsDecorator,其修饰的所有原函数(非 compat 版本)增加 url_suffix 参数,指定此参数后,用户第一次调用对应函数将会有 warning 报出,例如:

This is a non compatible API. Please refer to https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.split.html first.
A compatible version of this API: `paddle.compat.split` can be also used, make sure the correct API is called.

Pcard-89620

@paddle-bot
Copy link

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

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2025

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #74725   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         5           
  Branches           ?         0           
===========================================
  Hits               ?         5           
  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.

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

2 similar comments
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@Enigmatisms
Copy link
Contributor Author

/re-run CI-Build

@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

1 similar comment
@Enigmatisms
Copy link
Contributor Author

/re-run all-failed

@zhangbo9674 zhangbo9674 merged commit e8ca424 into PaddlePaddle:develop Aug 22, 2025
112 of 117 checks passed
Luckycheng222 pushed a commit to Luckycheng222/Paddle that referenced this pull request Aug 25, 2025
* [API-Compat] ForbidKeywordsDecorator now warns user

* [API-Compat] Largely cut down the decorator overhead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants