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
d04c8444
Commit
d04c8444
authored
Apr 04, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in ZMQInput
parent
d8dd7ca9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
tensorpack/input_source/input_source.py
tensorpack/input_source/input_source.py
+3
-2
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+1
-1
No files found.
tensorpack/input_source/input_source.py
View file @
d04c8444
...
@@ -425,13 +425,14 @@ class ZMQInput(TensorInput):
...
@@ -425,13 +425,14 @@ class ZMQInput(TensorInput):
def
fn
():
def
fn
():
ret
=
self
.
_zmq_pull_socket
.
pull
()
ret
=
self
.
_zmq_pull_socket
.
pull
()
assert
len
(
ret
)
==
len
(
self
.
_
des
c
)
assert
len
(
ret
)
==
len
(
self
.
_
spe
c
)
for
qv
,
v
in
zip
(
ret
,
self
.
_
des
c
):
for
qv
,
v
in
zip
(
ret
,
self
.
_
spe
c
):
qv
.
set_shape
(
v
.
shape
)
qv
.
set_shape
(
v
.
shape
)
return
ret
return
ret
super
(
ZMQInput
,
self
)
.
__init__
(
fn
)
super
(
ZMQInput
,
self
)
.
__init__
(
fn
)
def
_setup
(
self
,
input_signature
):
def
_setup
(
self
,
input_signature
):
super
(
ZMQInput
,
self
)
.
_setup
(
input_signature
)
assert
len
(
input_signature
)
>
0
,
\
assert
len
(
input_signature
)
>
0
,
\
"ZMQInput has to be used with input signature!"
"ZMQInput has to be used with input signature!"
...
...
tensorpack/tfutils/common.py
View file @
d04c8444
...
@@ -228,7 +228,7 @@ def collect_env_info():
...
@@ -228,7 +228,7 @@ def collect_env_info():
has_prctl
=
True
has_prctl
=
True
try
:
try
:
import
prctl
import
prctl
_
=
prctl
.
set_pdeathsig
_
=
prctl
.
set_pdeathsig
# noqa
except
Exception
:
except
Exception
:
has_prctl
=
False
has_prctl
=
False
data
.
append
((
"python-prctl"
,
has_prctl
))
data
.
append
((
"python-prctl"
,
has_prctl
))
...
...
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