Repository: pytorch
Issue: Can't perform any operation on Vulkan device - macOS M1
Labels: triaged,module: macos,module: arm,module: vulkan

## 🐛 Bug

I'm trying to use the Vulkan api on my macbook pro M1. I've followed the build instruction provided here [https://pytorch.org/tutorials/prototype/vulkan_workflow.html](https://pytorch.org/tutorials/prototype/vulkan_workflow.html) and successfully built pytorch with Vulkan enabled. `torch.is_vulkan_available()` returns `True`, and I can send tensors and scripted models on the GPU without any problem.

However, when trying to perform _any_ kind of transform on the tensor (convolution, addition, multiplication), it results in a `RuntimeError`.

## To Reproduce

```python
import torch

if not torch.is_vulkan_available():
    raise Exception("Pytorch not compiled with Vulkan enabled")

x = torch.randn(1, 16, 128).to(device="vulkan")
conv = torch.nn.Conv1d(16, 16, 1).to(device="vulkan")

conv(x)
```

results in

```
Traceback (most recent call last):
  File "debug.py", line 9, in <module>
    conv(x)
  File "/python3.9/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/python3.9/site-packages/torch/nn/modules/conv.py", line 263, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/python3.9/site-packages/torch/nn/modules/conv.py", line 259, in _conv_forward
    return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Could not run 'aten::as_strided' with arguments from the 'Vulkan' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/custom build process (if using custom build). If you are a Facebook employee using PyTorch on mobile, please visit https://fburl.com/ptmfixes for possible resolutions. 'aten::as_strided' is only available for these backends: [CPU, QuantizedCPU, BackendSelect, Named, AutogradOther, AutogradCPU, AutogradCUDA, AutogradXLA, AutogradNestedTensor, UNKNOWN_TENSOR_TYPE_ID, AutogradPrivateUse1, AutogradPrivateUse2, AutogradPrivateUse3, Tracer, Autocast, Batched, VmapMode].

CPU: registered at ~/code/pytorch/build/aten/src/ATen/RegisterCPU.cpp:5925 [kernel]
QuantizedCPU: registered at ~/code/pytorch/build/aten/src/ATen/RegisterQuantizedCPU.cpp:641 [kernel]
BackendSelect: fallthrough registered at ~/code/pytorch/aten/src/ATen/core/BackendSelectFallbackKernel.cpp:3 [backend fallback]
Named: fallthrough registered at ~/code/pytorch/aten/src/ATen/core/NamedRegistrations.cpp:11 [kernel]
AutogradOther: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradCPU: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradCUDA: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradXLA: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradNestedTensor: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
UNKNOWN_TENSOR_TYPE_ID: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradPrivateUse1: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradPrivateUse2: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
AutogradPrivateUse3: registered at ~/code/pytorch/torch/csrc/autograd/generated/VariableType_3.cpp:10140 [autograd kernel]
Tracer: registered at ~/code/pytorch/torch/csrc/autograd/generated/TraceType_3.cpp:10706 [kernel]
Autocast: fallthrough registered at ~/code/pytorch/aten/src/ATen/autocast_mode.cpp:250 [backend fallback]
Batched: registered at ~/code/pytorch/aten/src/ATen/BatchingRegistrations.cpp:1020 [kernel]
VmapMode: fallthrough registered at ~/code/pytorch/aten/src/ATen/VmapModeRegistrations.cpp:33 [backend fallback]
```

## Environment

```
Collecting environment information...
PyTorch version: 1.8.0a0+56b43f4
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 11.4 (arm64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.29)
CMake version: version 3.20.3
Libc version: N/A

Python version: 3.9 (64-bit runtime)
Python platform: macOS-11.4-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.20.3
[pip3] torch==1.10.0a0+gitff15d93
[conda] numpy                     1.20.3                   pypi_0    pypi
[conda] torch                     1.8.0a0+56b43f4          pypi_0    pypi
```

cc @malfet @albanD