Hi,
I am getting the same error and I am using set_start_method(‘spawn’).
Could you please help a check what is wrong with this code.

  
    
    
    RuntimeError: cuda runtime error (801) : operation not supported at ..\torch/csrc/generic/StorageSharing.cpp:247 
  
  
    Hi, 
I am trying to modify my A3C code from cpu device version to cuda version. 
However I am facing above error. 
I have already set the start method to ''spawn" 

from torch.multiprocessing import Process, set_start_method 
try: 
set_start_method(‘spawn’) 
except: 
pass 

and send the model to device 

device = torch.device(“cuda” if torch.cuda.is_available() else “cpu”) 
model = ActorCritic(params).to(device) 

and running the workers by: 
            for rank in range(params.num_processes):
…