Skip to content

Conversation

@JiaViii
Copy link

@JiaViii JiaViii commented Dec 5, 2025

PR Category

User Experience

PR Types

Others

Description

为如下API修复示例代码

  • paddle.Tensor.unflatten
  • paddle.Tensor.view_as_complex
  • paddle.audio.datasets.ESC50

Related links

cc @ooooo-create

…ten,paddle.Tensor.view_as_complex,paddle.audio.datasets.ESC50)
@paddle-bot
Copy link

paddle-bot bot commented Dec 5, 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.

@CLAassistant
Copy link

CLAassistant commented Dec 5, 2025

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 5, 2025
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Dec 5, 2025
@SigureMo
Copy link
Member

SigureMo commented Dec 7, 2025

先通过 CodeStyle 和 Static check 流水线

@JiaViii JiaViii force-pushed the fix-doctest-37-41-44 branch 2 times, most recently from c281187 to 8245005 Compare December 11, 2025 10:08
@JiaViii
Copy link
Author

JiaViii commented Dec 13, 2025

CodeStyle 和 Static check已通过
@SigureMo

>>> # doctest: +TIMEOUT(60)
>>> import paddle
>>> import warnings
Copy link
Member

Choose a reason for hiding this comment

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

加这个干什么?这是给用户看的,加这个是跟用户说写代码时候也要 filter 掉 warning 么?

Copy link
Author

Choose a reason for hiding this comment

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

CI会用root权限运行pip,pip会针对root的运行提出警告,而CI 把所有警告当错误处理,因此会导致CI错误,我没有想到更好的解决办法

Copy link
Member

Choose a reason for hiding this comment

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

啥意思?这里哪里有执行 pip?这不是下载数据集么?

Copy link
Author

Choose a reason for hiding this comment

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

应该是CI自动化流程执行的pip

Copy link
Member

Choose a reason for hiding this comment

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

这怎么还不删?

>>> warnings.simplefilter('ignore')
>>> os.environ['PIP_ROOT_USER_ACTION'] = 'ignore'
>>> # xdoctest: +SKIP("dataset too large for CI")
Copy link
Member

@SigureMo SigureMo Dec 13, 2025

Choose a reason for hiding this comment

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

为什么要跳过?是 timeout 还是什么原因?为什么还把 timeout 删掉了???

Copy link
Author

Choose a reason for hiding this comment

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

这里的代码块会加载数据集,但是CI环境里无法下载数据集,就会报错

Copy link
Member

Choose a reason for hiding this comment

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

但是CI环境里无法下载数据集,就会报错

指出对应的流水线日志,找不到就重新触发,是否之前能下载现在不能下载我们需要知道原因

Copy link
Author

Choose a reason for hiding this comment

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

我查阅了很多资料,CI环境中不适合对需要下载外部数据并访问本地文件的功能执行测试,因此跳过是合理的,对应的流水线日志我随后查找一下

Copy link
Member

Choose a reason for hiding this comment

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

又是什么大模型给出的离谱解释?让我避避坑

之前能跑现在也需要能跑,不然我们如何保证示例代码的可用性和用户的可复现性?

Copy link
Author

Choose a reason for hiding this comment

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

好的,我再重新触发试一下

@SigureMo
Copy link
Member

CLA 需要签署

@JiaViii JiaViii force-pushed the fix-doctest-37-41-44 branch from b608448 to 0f24fc8 Compare December 15, 2025 16:15
>>> # doctest: +TIMEOUT(60)
>>> import paddle
>>> import warnings
Copy link
Member

Choose a reason for hiding this comment

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

这怎么还不删?

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.

5 participants