Open AnupViAn opened 6 years ago
Just change your input value to shape 32 x 24 x batchSize, and output value would be 34 x batchSize. Notice that CNTK C/C# interface assumes data to be column major.
@KeDengMS Batch input problem solved for me but now I am facing issue with heap memory. I am calling CNTK_EvaluateSequence function inside "for" loop and batch size is varying (increasing or decreasing (my application requirement)) for each iteration and I observed (in performance profiler VS2017) that heap allocation increases at each iteration. If I keep constant batch size then heap allocation becomes constant.
Can you please suggest me where I am doing wrong? Thanks
I tried As per your suggestion but still facing the same problem.
Which version of CNTK? There's a bug fix for MKL mem leak in 2.5. If you are running 2.5, please share a repro.
I upgraded the version from 2.4 to 2.5 and now its working fine. Thanks for your time and support.
Hello, I see memory leak both for 2.4 and 2.5 with Java evaluation. Are the native Dlls for the CNTK.jar also updated? thanks
Hello,
My trained model has an input of 24x32 grayscale image and 34 output classes. I am using this model in my C code. To do so i am using C wrapper functions (CNTK_LoadModel / CNTK_EvaluateSequence) that are provided in CNTKLibraryC.cpp. When I passed a single image to CNTK_EvaluateSequence, I got the output. But now I want to pass my input in a batch of 10 images, so do I need to change the function or is it possible with the current CNTK_EvaluateSequence function?
Any help would be really appreciated. Thanks