Fix undefined variable 'namedshape' in tensor.py (#45085)
Summary:
Hot Fix
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45085
Reviewed By: malfet, seemethere
Differential Revision: D23824444
Pulled By: walterddr
fbshipit-source-id: c9f37b394d281b7ef44b14c30699bb7510a362a7