CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

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

Open dk-teknologisk-mlnn opened this issue 4 years ago • 0 comments

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?

dk-teknologisk-mlnn avatar Feb 16 '21 08:02 dk-teknologisk-mlnn