After looking to the pytorch issues it seems there is a patch for this one but not inside the latest release.
I apply it and its now build fine but still failed to link because of size:
Fatal error LNK1248: image size exceeds maximum allowable
I am building with ninja in release, I am not sure how I can fix this one, any suggestion.
Thanks