disable get_url temporarily#7742
Merged
sunzhongkai588 merged 2 commits intoPaddlePaddle:developfrom Feb 13, 2026
Merged
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7742.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
Comment on lines
18
to
22
| return "" | ||
| # TDDO(zhwesky2010): Test get_url stability in different environment, will cause instability now | ||
| try: | ||
| api_name = api_name.replace(r"\_", "_") | ||
| if package is None: |
There was a problem hiding this comment.
get_url() 入口处无条件 return "" 会导致后续解析逻辑完全不可达,进而让 generate_pytorch_api_mapping.py 生成的 API 超链接全部缺失,并使 validate_api_difference_format.py 中的 URL 校验被整体跳过。若目的是规避网络/环境不稳定,建议改为通过环境变量/显式参数开关来禁用,或在 inventory 拉取失败时降级为本地缓存/Empty parser 并记录告警,而不是始终返回空字符串。
docs/guides/model_convert/convert_from_pytorch/tools/utils/api_utils.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.