That fixed it thank you for all your help.
Keywords: error C2338: CopyToCPU requires fundamental types
I went to the github commit linked above which is a branch of the peterjc123/pytorch repo. I cloned that repo and use the command checkout branch is_fundamental_fix (you can see all branches with git branch -a). You can verify that you are using the correct branch by checking that the changes in https://github.com/pytorch/pytorch/pull/30959/files 10 are consistent with what you have on your machine. From there I did the normal pytorch install from source commands.