ucalyptus1:

mesh_obj,n_points,device


Ok. in your task you are trying to use multiprocessing for transforming Pytorch3d meshes to points.
In the Hogwild implementation 1 it has been mainly used for training the model like also reported here.
When a  Tensor  is sent to another process, the  Tensor  data is shared. You can also change  torch.Tensor.grad  to not  None , to share it.
But those implementations are focused on Models and training procedure inside the model…so I will implement directly there.
Also this I hope it helps

  
      
      Deep Learning Course Forums – 25 Jun 20
  
  
    

Distributed and parallel training... explained

[ EDIT - 06/29/2020 ] Do not follow this post about Data Parallel (DP) and Distributed Data Parallel (DDP) training in PyTorch and fastai v2: it contains wrong code. Instead, you should look at the Distributed and parallel training fastai v2...

  Reading time: 12 mins 🕑
    Likes: 16 ❤