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
47814f1f
Commit
47814f1f
authored
Sep 09, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs (#412)
parent
45c0a1e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
tensorpack/dataflow/prefetch.py
tensorpack/dataflow/prefetch.py
+9
-4
No files found.
tensorpack/dataflow/prefetch.py
View file @
47814f1f
...
@@ -136,11 +136,16 @@ class PrefetchDataZMQ(ProxyDataFlow):
...
@@ -136,11 +136,16 @@ class PrefetchDataZMQ(ProxyDataFlow):
3. When nesting like this: ``PrefetchDataZMQ(PrefetchDataZMQ(df, nr_proc=a), nr_proc=b)``.
3. When nesting like this: ``PrefetchDataZMQ(PrefetchDataZMQ(df, nr_proc=a), nr_proc=b)``.
A total of ``a * b`` instances of ``df`` worker processes will be created.
A total of ``a * b`` instances of ``df`` worker processes will be created.
Also in this case, some zmq pipes cannot be cleaned at exit.
Also in this case, some zmq pipes cannot be cleaned at exit.
4. A local directory is needed to put the ZMQ pipes.
4. By default, a UNIX named pipe will be created in the current directory.
You can set this with env var ``$TENSORPACK_PIPEDIR`` if you're
However, certain non-local filesystem such as NFS/GlusterFS/AFS doesn't always support pipes.
running on non-local FS that doesn't support pipes very well, such as NFS or GlusterFS.
You can change the directory by ``export TENSORPACK_PIPEDIR=/other/dir``.
Please note that some non-local FS may appear to support pipes and code
In particular, you can use somewhere under '/tmp' which is usually local.
Note that some non-local FS may appear to support pipes and code
may appear to run but crash with bizarre error.
may appear to run but crash with bizarre error.
Also note that ZMQ limits the maximum length of pipe path.
If you hit the limit, you can set the directory to a softlink
which points to a local directory.
5. Calling `reset_state()` more than once is a no-op, i.e. the worker processes won't get called.
5. Calling `reset_state()` more than once is a no-op, i.e. the worker processes won't get called.
"""
"""
def
__init__
(
self
,
ds
,
nr_proc
=
1
,
hwm
=
50
):
def
__init__
(
self
,
ds
,
nr_proc
=
1
,
hwm
=
50
):
...
...
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