Hi @peterjc123,
I try to set MSVC_Z7 but still have the same issue, finally I am building torch using MinSizeRel and it seems to be working fine, I was able to build a cpu version of torch for windows 10.
Currently building the GPU version.
Thanks