Solved by peterjc123 in post #2 
              
              
                It’s actually not supported by CUDA. See details in the Windows docs. 
https://pytorch.org/docs/stable/notes/windows.html#cuda-ipc-operations