Ok. I tried to provide load_state_dict() with incompatible dict object and I get different error (“Error(s) in loading state_dict”)
It is a snippet:
model = torchvision.models.resnet18()
od = OrderedDict() 
torch.save(od, 'tmp.pt')
model.load_state_dict(od)
model.load_state_dict(torch.load('tmp.pt'))

The only way I can reproduce the error “TypeError: load_state_dict() missing 1 required positional argument: ‘state_dict’” is actually to call this function without any arguments like this model.load_state_dict()
What is your pytorch version, by the way?