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
eb0aa840
Commit
eb0aa840
authored
Jul 05, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove enqueue timeout (fix #324)
parent
01cab873
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
tensorpack/train/input_source.py
tensorpack/train/input_source.py
+1
-6
No files found.
tensorpack/train/input_source.py
View file @
eb0aa840
...
@@ -188,20 +188,15 @@ class EnqueueThread(ShareSessionThread):
...
@@ -188,20 +188,15 @@ class EnqueueThread(ShareSessionThread):
def
run
(
self
):
def
run
(
self
):
with
self
.
default_sess
():
with
self
.
default_sess
():
sess
=
tf
.
get_default_session
()
opt
=
tf
.
RunOptions
()
opt
.
timeout_in_ms
=
10000
try
:
try
:
self
.
dataflow
.
reset_state
()
self
.
dataflow
.
reset_state
()
while
True
:
while
True
:
for
dp
in
self
.
dataflow
.
get_data
():
for
dp
in
self
.
dataflow
.
get_data
():
feed
=
dict
(
zip
(
self
.
placehdrs
,
dp
))
feed
=
dict
(
zip
(
self
.
placehdrs
,
dp
))
# print 'qsize:', self.sess.run([self.op, self.size_op], feed_dict=feed)[1]
# print 'qsize:', self.sess.run([self.op, self.size_op], feed_dict=feed)[1]
se
ss
.
run
(
self
.
op
,
feed_dict
=
feed
,
options
=
opt
)
se
lf
.
op
.
run
(
feed_dict
=
feed
)
except
(
tf
.
errors
.
CancelledError
,
tf
.
errors
.
OutOfRangeError
):
except
(
tf
.
errors
.
CancelledError
,
tf
.
errors
.
OutOfRangeError
):
pass
pass
except
tf
.
errors
.
DeadlineExceededError
:
logger
.
exception
(
"Deadline exceeded while waiting for data from the queue!"
)
except
Exception
:
except
Exception
:
logger
.
exception
(
"Exception in EnqueueThread:"
)
logger
.
exception
(
"Exception in EnqueueThread:"
)
finally
:
finally
:
...
...
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