Skip to content

Commit

Permalink
[fix] Make queue.put() blocking again (OpenNMT#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoishernandez authored and vince62s committed Jun 4, 2019
1 parent b731e04 commit 065c99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def next_batch(device_id):

# hack to dodge unpicklable `dict_keys`
b.fields = list(b.fields)
q.put(b, False)
q.put(b)
b = next_batch(device_id)


Expand Down

0 comments on commit 065c99f

Please sign in to comment.