view_as_real doesn't work for all backends since it relies on strides. (#47018)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47018
Test Plan: Imported from OSS
Reviewed By: jamesr66a
Differential Revision: D24607340
Pulled By: ailzhang
fbshipit-source-id: c7fd85cd636ae9aebb22321f8f1a255af81a473f