microsoft / CNTK

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
https://docs.microsoft.com/cognitive-toolkit/
Other
17.49k stars 4.3k forks source link

MFC application that uses evaluate force loads the cntk-core dll on start. cannot delay load it #3846

Open dk-teknologisk-mlnn opened 3 years ago

dk-teknologisk-mlnn commented 3 years ago

I train in python, and included evaluation of models in a c++ mfc singledoc/view program that was always very fast to open. After including cntk it is slow to open and I noticed that it always loads the cntk.core*.dll on starting. the rest ( math, mkldnn, and mklml) are delay loaded when I enable the cntk feature in the app. I tried to remove all references to cntk in the header files, so it only refers to cntk when I choose the option in the menu to enable it, and put it in the delayload project settings.

Is there any way to stop loading the core dll until it is needed?