I have a code in C++ to load and use a network that was design and pre-trained with Pytorch. The code runs smoothly when used independently in a C++ Visual Studio 2019 project. However, when I added the code to a pre-existing C++ windows forms program that used “/CRL”, I get a lot of errors from the Libtorch libraries such as “std” has no member “mutex” and  “E0035| #error directive: <condition_variable> is not supported when compiling with /clr or /clr:pure”. I tried just to include the “script.h” header to the project without any Libtorch code, but it throws all those errors too. When I remove the line “include <torch/script.h>” from the program it runs, but obviously without Libtorch support. Does anyone have any idea of how to fix this issue? Thank you.