Solved by ptrblck in post #2 
              
              
                What are you trying to achieve using the queue? 
Have a look at the Multiprocessing Best Practices, as it might get tricky. 

No, plain Python types won’t be pushed to the GPU. You would have to create a tensor and register it as an nn.Parameter (if trainable) or buffer (using self.register_buffer, …