> This is about 5% of the code. > Uses no locks.[/color] A lock is acquired in Queue.__init__( ). [color=blue] > I am mystified, I have written probably 100,000 lines > of Python and never seen a thread just lock up and quit > running. It happens on a Queue() statement ...
This works fine for a single epoch, but I do multiple epochs, alternating between training data and testing data, and I can't reuse the queue after calling queue.close(). The two solutions that I have thought of using the existing code are: enqueue() some sentinel at the end of an ep...