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
5ab89843
Commit
5ab89843
authored
Mar 24, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os==windows checking in zmq
parent
273e6f91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
examples/A3C-Gym/simulator.py
examples/A3C-Gym/simulator.py
+2
-0
tensorpack/dataflow/prefetch.py
tensorpack/dataflow/prefetch.py
+1
-0
No files found.
examples/A3C-Gym/simulator.py
View file @
5ab89843
...
...
@@ -6,6 +6,7 @@
import
tensorflow
as
tf
import
multiprocessing
as
mp
import
time
import
os
import
threading
from
abc
import
abstractmethod
,
ABCMeta
from
collections
import
defaultdict
...
...
@@ -105,6 +106,7 @@ class SimulatorMaster(threading.Thread):
def
__init__
(
self
,
pipe_c2s
,
pipe_s2c
):
super
(
SimulatorMaster
,
self
)
.
__init__
()
assert
os
.
name
!=
'nt'
,
"Doesn't support windows!"
self
.
daemon
=
True
self
.
name
=
'SimulatorMaster'
...
...
tensorpack/dataflow/prefetch.py
View file @
5ab89843
...
...
@@ -119,6 +119,7 @@ class PrefetchDataZMQ(ProxyDataFlow):
nr_proc (int): number of processes to use.
hwm (int): the zmq "high-water mark" for both sender and receiver.
"""
assert
os
.
name
!=
'nt'
,
"PrefetchDataZMQ doesn't support windows! Consider PrefetchData instead."
super
(
PrefetchDataZMQ
,
self
)
.
__init__
(
ds
)
try
:
self
.
_size
=
ds
.
size
()
...
...
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