CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

When we execute the plot action, It shows "The syntax of the command is incorrect."

Open BorisJineman opened this issue 10 years ago • 4 comments

Hi Sir,

I try to use CNTK 's plot action to render the model to an jpg file, but it always throw the "The syntax of the command is incorrect.".

I try to investigate it, and found an issue about the replace of the renderCmd, According to the function DoTopologyPlot in OtherActions.cpp, we want to use bellow code to replace the renderCmd, it will not replace anything, msra::strfun::ReplaceAll(renderCmd, wstring(L""), outputDotFile); msra::strfun::ReplaceAll(renderCmd, wstring(L""), outputFile); I will fixed it by bellow code, renderCmd = msra::strfun::ReplaceAll(renderCmd, wstring(L""), outputDotFile); renderCmd = msra::strfun::ReplaceAll(renderCmd, wstring(L""), outputFile);

So should I submit an pull request?

Peace and Long Life, Boris

BorisJineman avatar Mar 20 '16 14:03 BorisJineman

Yes, please do. Thanks much!

This error is the result of a refactoring and slipped through the cracks... Thanks for finding it!

frankseide avatar Mar 20 '16 15:03 frankseide

Aye Sir, I just submit an pull request, :) https://github.com/Microsoft/CNTK/pull/258

BorisJineman avatar Mar 20 '16 15:03 BorisJineman

Thanks so much!

frankseide avatar Mar 20 '16 16:03 frankseide

Closed by 8e05830b81f209b69e5620d26def6096def96108 / #258.

mahilleb-msft avatar Mar 29 '16 10:03 mahilleb-msft