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
5bf3bc81
Commit
5bf3bc81
authored
Sep 02, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in pyzmq recv
parent
a6a0889a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
examples/README.md
examples/README.md
+1
-1
tensorpack/RL/simulator.py
tensorpack/RL/simulator.py
+1
-1
tensorpack/dataflow/dataset/ilsvrc.py
tensorpack/dataflow/dataset/ilsvrc.py
+1
-1
tensorpack/dataflow/prefetch.py
tensorpack/dataflow/prefetch.py
+1
-1
No files found.
examples/README.md
View file @
5bf3bc81
# tensorpack examples
Only allow e
xamples with __reproducible__ and meaningful performancce.
E
xamples with __reproducible__ and meaningful performancce.
+
[
An illustrative mnist example
](
mnist-convnet.py
)
+
[
A small Cifar10 ConvNet with 91% accuracy
](
cifar-convnet.py
)
...
...
tensorpack/RL/simulator.py
View file @
5bf3bc81
...
...
@@ -90,7 +90,7 @@ class SimulatorProcessStateExchange(SimulatorProcessBase):
c2s_socket
.
send
(
dumps
(
(
self
.
identity
,
state
,
reward
,
isOver
)),
copy
=
False
)
action
=
loads
(
s2c_socket
.
recv
(
copy
=
False
))
action
=
loads
(
s2c_socket
.
recv
(
copy
=
False
)
.
bytes
)
reward
,
isOver
=
player
.
action
(
action
)
state
=
player
.
current_state
()
...
...
tensorpack/dataflow/dataset/ilsvrc.py
View file @
5bf3bc81
...
...
@@ -96,7 +96,7 @@ class ILSVRC12(RNGDataFlow):
:param dir: A directory containing a subdir named `name`, where the
original ILSVRC12_`name`.tar gets decompressed.
:param name: 'train' or 'val' or 'test'
:param dir_structure: The dir structure of 'val'
or
'test'.
:param dir_structure: The dir structure of 'val'
and
'test'.
If is 'original' then keep the original decompressed dir with list
of image files (as below). If equals to 'train', use the `train/` dir
structure with class name as subdirectories.
...
...
tensorpack/dataflow/prefetch.py
View file @
5bf3bc81
...
...
@@ -149,7 +149,7 @@ class PrefetchDataZMQ(ProxyDataFlow):
for
k
in
itertools
.
count
():
if
self
.
_size
>
0
and
k
>=
self
.
_size
:
break
dp
=
loads
(
self
.
socket
.
recv
(
copy
=
False
))
dp
=
loads
(
self
.
socket
.
recv
(
copy
=
False
)
.
bytes
)
yield
dp
def
reset_state
(
self
):
...
...
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