-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[xdoctest][task skip_no_reason 8-11] add skip reason for jit sample code #57676
Merged
SigureMo
merged 3 commits into
PaddlePaddle:develop
from
cattidea:xdoctest/skip-reason/jit
Sep 27, 2023
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
奇怪,code-example2 一直不过,但本地可以过 @megemini
看着像多进程导致的问题?但我用的是最新版 convert-doctest 呀
另外 TracedLayer 三个报错先不用管,TracedLayer 目前已经不用了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯 ... ... 之前其实一直担心,使用多进程可能会对 paddle 本身有一定副作用 ~
这里 paddle 内部也用了多进程(应该是加载数据用的),不能嵌套进程,即使按照报错信息不用 daemon,也会因为不能 pickle 而报错 ~
有个办法,加个全局 directive,让这个用例不在子进程运行,看看行不?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可是 convert-doctest 为什么没问题呢?这俩按理说是一样的呀?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我在 aistudio 上也报错 ~
你是在本地 mac 运行的?
不同系统对于 multiprocessing 处理不一样 ... ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle 目前强制用的
fork
:Paddle/python/paddle/reader/decorator.py
Lines 29 to 42 in 395ffbf
出错的
_DataLoaderIterMultiProcess
也是用的默认的multiprocessing.Process
,linux 下是fork
,mac 下是spawn
~fork
is fast, unsafe, and maybe bloated,另参考 Fork vs Spawn in Python Multiprocessing, 所以当时我是强制用的spawn
。我试过用
fork
,虽然快,但是问题更多 ... ...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯嗯对
那看样子只能这样了~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR: #57692 🤔