Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
ea525564
Commit
ea525564
authored
May 14, 2020
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for latest flake8
parent
610ffe3f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
tensorpack/utils/concurrency.py
tensorpack/utils/concurrency.py
+5
-4
No files found.
tensorpack/utils/concurrency.py
View file @
ea525564
...
@@ -231,10 +231,11 @@ def start_proc_mask_signal(proc):
...
@@ -231,10 +231,11 @@ def start_proc_mask_signal(proc):
for
p
in
proc
:
for
p
in
proc
:
if
isinstance
(
p
,
mp
.
Process
):
if
isinstance
(
p
,
mp
.
Process
):
if
sys
.
version_info
<
(
3
,
4
)
or
mp
.
get_start_method
()
==
'fork'
:
if
sys
.
version_info
<
(
3
,
4
)
or
mp
.
get_start_method
()
==
'fork'
:
log_once
(
log_once
(
"""
"Starting a process with 'fork' method is not safe and may consume unnecessary extra CPU memory."
Starting a process with 'fork' method is not safe and may consume unnecessary extra CPU memory.
" Use 'forkserver' or 'spawn' method (available after Py3.4) instead if you run into any issues. "
Use 'forkserver' or 'spawn' method (available after Py3.4) instead if you run into any issues.
"See https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods on how to set them."
,
See https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods on how to set them.
"""
.
replace
(
"
\n
"
,
""
),
'warn'
)
# noqa
'warn'
)
# noqa
p
.
start
()
p
.
start
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment