Fix view_complex_as_float for empty tensors (#36415)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/36415
Test Plan: Imported from OSS
Differential Revision: D20974194
Pulled By: pbelevich
fbshipit-source-id: afc19a47d585b7c0c33fcde922d10fa377194315