Revert back to old assert behavior in as_view (#57499)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57499
Reviewed By: gmagogsfm
Differential Revision: D28162814
Pulled By: albanD
fbshipit-source-id: e3a970107ab59bb15794f0f82ee12c771caa93d5