Hello I am currently on pytorch version 1.8.0, and I tried to do a basic  copy of two models.
Actor1.load_state_dict(Actor2.state_dict())
This doesn’t work and the error I get is:
Expected type ‘OrderedDict[str, Tensor]’, got ‘Dict[str, Tensor]’ instead.
I have scoured the internet for an answer to this but to no avail.Please help me.
EDIT: I have checked all my previous programs and everywhere the load_state_dict method has broken.So basically this has broken over 13 to 14 of my programs. Please check this fast.