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
d6f1b6ee
Commit
d6f1b6ee
authored
Jul 21, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in prefecthongpus
parent
be2d2001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tensorpack/dataflow/prefetch.py
tensorpack/dataflow/prefetch.py
+3
-2
No files found.
tensorpack/dataflow/prefetch.py
View file @
d6f1b6ee
...
@@ -13,7 +13,8 @@ import os
...
@@ -13,7 +13,8 @@ import os
from
.base
import
ProxyDataFlow
from
.base
import
ProxyDataFlow
from
..utils.concurrency
import
*
from
..utils.concurrency
import
*
from
..utils.serialize
import
loads
,
dumps
from
..utils.serialize
import
loads
,
dumps
from
..utils
import
logger
,
change_env
from
..utils
import
logger
from
..utils.gpu
import
change_gpu
__all__
=
[
'PrefetchData'
,
'BlockParallel'
]
__all__
=
[
'PrefetchData'
,
'BlockParallel'
]
try
:
try
:
...
@@ -173,8 +174,8 @@ class PrefetchDataZMQ(ProxyDataFlow):
...
@@ -173,8 +174,8 @@ class PrefetchDataZMQ(ProxyDataFlow):
class
PrefetchOnGPUs
(
PrefetchDataZMQ
):
class
PrefetchOnGPUs
(
PrefetchDataZMQ
):
""" Prefetch with each process having a specific CUDA_VISIBLE_DEVICES"""
""" Prefetch with each process having a specific CUDA_VISIBLE_DEVICES"""
def
__init__
(
self
,
ds
,
gpus
,
pipedir
=
None
):
def
__init__
(
self
,
ds
,
gpus
,
pipedir
=
None
):
super
(
PrefetchOnGPUs
,
self
)
.
__init__
(
ds
,
len
(
gpus
),
pipedir
)
self
.
gpus
=
gpus
self
.
gpus
=
gpus
super
(
PrefetchOnGPUs
,
self
)
.
__init__
(
ds
,
len
(
gpus
),
pipedir
)
def
start_processes
(
self
):
def
start_processes
(
self
):
with
mask_sigint
():
with
mask_sigint
():
...
...
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