PyTorch multiprocessing error: ConnectionRefusedError: [Errno 111] Connection refused

前端 未结 0 831

When I run the following code,

import torch.multiprocessing as mp
import torch

def f(q):
    t = torch.ones([2,3])
    q.put(t)

if __name__ == \'__main__\':
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题