If epochdata is a simple list, only the first element is enqueued. Therefore, epochdata must be an ndarray or tensor. However, I guess that the ndarray is converted to a tensor during enqueuing, because the dequeued one by dequeue() is a tensor. When enqueue_many() is used, epochdata is sliced along 0-th dimension, and then enqueued, slice by slice.
|