@peterjc123 thanks for your reply. I stopped building  source using msvc2017. Recently in last week I got new msvc2019 licensed version with this I am not facing any issue building pytorch source on windows.
But there is one prb, after build and installing pytorch on windows in my local virtual env, I tried to run simple python visual studio project.  I am seeing one error while doing " import torch"
Error:
Could not convert to integer: 3221225477. path exitcode.
value was either too large or too small for an Int32.
any reason why is this error?