Hi,
I’m excited to contribute to PyTorch Vision. Hence, I want to build PyTorch Vision in the local system.
I followed the CONTRIBUTION.md guide. But I’m getting the following error.
/home/khushi/anaconda3/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h(2615): error: static assertion failed with "You changed the size of TensorImpl on 64-bit arch.See Note [TensorImpl size constraints] on how to proceed."

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(231): warning: variable "device_guard" was declared but never referenced

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(414): warning: variable "device_guard" was declared but never referenced

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(658): warning: variable "device_guard" was declared but never referenced

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(763): warning: variable "guard" was declared but never referenced

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(925): warning: variable "guard" was declared but never referenced

/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(1057): warning: variable "guard" was declared but never referenced

1 error detected in the compilation of "/home/khushi/Documents/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu".
error: command '/opt/cuda/bin/nvcc' failed with exit status 1

Will anyone please help me out to resolve the error?
Dependencies:

Cuda version: 11.4
GCC version: 11.1.0

Thanks