I tried to use a C++ DLL that calls a python module in my C++ frontend which uses torchlib  and upon trying to import the mentioned module, it produces this error :

The procedure entry point mkldnn_stream_destroy could not be located in 
the dynamic link library ..\torch\lib\caffe_2_detectron_ops.dll

The issue doesnt exist, when I call the dll in a standalone project (that does not use torchlib).
what is the problem here?