Upgrading to v17.4 of Visual Studio leads to a C++ compiler bug that has yet to be fixed. Solutions include using a pre-17.4 version of VS, or modifying a header file in the PyTorch Distribution as described herein:
https://stackoverflow.com/questions/74366357/updating-to-visual-studio-17-4-0-yields-linker-errors-related-to-tls
This is a C++ compiler bug, combined with a particular code pattern used in a PyTorch distribution header file, so there is nothing to do in the TorchSharp code base besides tracking it.
@GeorgeS2019, I believe you ran into this issue some time ago.
Upgrading to v17.4 of Visual Studio leads to a C++ compiler bug that has yet to be fixed. Solutions include using a pre-17.4 version of VS, or modifying a header file in the PyTorch Distribution as described herein:
https://stackoverflow.com/questions/74366357/updating-to-visual-studio-17-4-0-yields-linker-errors-related-to-tls
This is a C++ compiler bug, combined with a particular code pattern used in a PyTorch distribution header file, so there is nothing to do in the TorchSharp code base besides tracking it.
@GeorgeS2019, I believe you ran into this issue some time ago.