It seems the error is thrown from the compiled kernels using nvcc in YOLO2 (line of code 49), not PyTorch directly.
Could you try so get -arch to -arch=sm_61, as it seems your M1200 is built using the Pascal architecture (doc 65).