Fix use of allow_tensor_metadata in view variable creation (#57069)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57069
Test Plan: Imported from OSS
Reviewed By: zou3519
Differential Revision: D28071507
Pulled By: albanD
fbshipit-source-id: 44f0e09846fdc569cf1a62a6f80ca88911e7e45c