shape analysis fix for default dtype' (#40938)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40938
already accepted in https://github.com/pytorch/pytorch/pull/40645
Test Plan: Imported from OSS
Reviewed By: jamesr66a, Krovatkin
Differential Revision: D22394675
Pulled By: eellison
fbshipit-source-id: 1e9dbb24a4cb564d9a68280d2166329ca9fb0425