nice error msg from load_state_dict for non-tensor value (#70596)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/67549
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70596
Reviewed By: anjali411
Differential Revision: D33710750
Pulled By: jbschlosser
fbshipit-source-id: 870b5fafffcd005fd4fcd62f865542739c133805
(cherry picked from commit da374fbc58a61774632c6517d68ad56ecb82019e)