[vulkan][build_fix] Fix Vulkan Build; Prepacking uses new register api (#39771)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39771
Vulkan build was not integrated with CI, it fails without this change.
There were 2 separate problems
1. Recently added aten/src/ATen/templates/Functions.cpp missed VulkanType in header
2. Applying the new registration api, similar to xnnpack change
https://github.com/pytorch/pytorch/pull/36800
Test Plan:
`ANDROID_ABI=x86 ./scripts/build_android.sh -DUSE_VULKAN=ON` builds ok
CI integration for it is in the next PR in this stack ( https://github.com/pytorch/pytorch/pull/39767 )
job `ci/circleci: pytorch_linux_xenial_py3_clang5_android_ndk_r19c_x86_32_vulkan_build`
Differential Revision: D21975992
Pulled By: IvanKobzarev
fbshipit-source-id: b0400a9cb0ae90d7763ebeb5b8f7ee932a2148e1