I’m trying to share the weights of networks between processes using multiprocessing manager.dict
The code is as follows
    for name in critic_state_dict:
        self.shared_networks.critic[name] = T.tensor(critic_state_dict[name].clone().cpu().detach().numpy())

This works fine in windows. But when I use a cluster, it hangs in the middle of the for loop
How do I fix this? Or if I want to periodically share the weights among processes, how to do it properly?
Thanks