Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix order
  • Loading branch information
Dref360 committed Oct 29, 2018
commit a57bf5a0e1bcb3309251567de941bbf97be6bdde
4 changes: 2 additions & 2 deletions keras/utils/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ def get(self):
while self.is_running():
try:
future = self.queue.get(block=True)
self.queue.task_done()
inputs = future.get(timeout=30)
self.queue.task_done()
except mp.TimeoutError:
idx = future.idx
warnings.warn(
Expand Down Expand Up @@ -697,8 +697,8 @@ def get(self):
while self.is_running():
try:
future = self.queue.get(block=True)
self.queue.task_done()
inputs = future.get(timeout=30)
self.queue.task_done()
except mp.TimeoutError:
warnings.warn(
"An input could not be retrieved."
Expand Down