Hi,
I an not sure why you actually need to do it this way. This is just a typing issue that you should ignore and just use Actor1.load_state_dict(Actor2.state_dict()).
I opened an issue here to fix this: Typing issue on state_dict/load_state_dict · Issue #55302 · pytorch/pytorch · GitHub 14