[vulkan] Add nonVarTypeModeGuard to vulkan tests and speed_benchmark_torch (#52535)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/52535
Test Plan: Imported from OSS
Reviewed By: ailzhang
Differential Revision: D26580994
Pulled By: SS-JIA
fbshipit-source-id: 94f091432265cf6607b73c34846c07273d47c70b