Thanks lot for your help, got it working
I deleted all the files in the setup.py folder other than the src folder of c++ and then rebuilt using
TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0" python setup.py install

and that worked, didn’t need to edit the setup.py file in the end