How do I copy model parameters between multiprocessing? Please tell me who understands
It is a model of cuda
Normal way I know

self.agentQN.load_state_dict(mainQN.state_dict())

But this method doesn’t seem to work because of a different process. For cuda .share_memory () doesn’t seem to work either