-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kaldi decoding error with new release of CNTK #65
Comments
Hi lahiruts, We are aware of this issue. A fix will be on the way soon. Thanks, |
I have the same problem.... Thanks, |
Is there a chance you could run this in Debug mode? The call stack is missing a critical entry, between WriteOutput() and NotifyFunctionValuesMBSizeModified(). I guess that function got inlined in the Release build. |
Actually, could you just try the latest? We did fix something related to this a few days ago. Would you mind letting me know if it works now? |
I tried with the latest downloadable sources but the error (see below) still persists. Thank you! Mirco
|
Hmm... I think the first would be to see the actual error. Somehow it gets masked. Are you building your own binary? If so, could you run it in Debug, or if that does not work, enable the fprintf() call in Basics.h ThrowFormatted()? template
#ifdef _DEBUG // print this to log before throwing, so we can see what the error is |
If I enable those fprintf in the Basics.h, before the error reported in the previous post, I have: `Allocating matrices for forward and/or backward propagation. It seems that for some reasons the reader does something weird. The reading part of the CNTK2_write.cntk is the following: reader=[ |
We have discovered a tricky problem which may be related to this. I will let you know when it lands. |
…uteNodes that have already been computed, addressing Issue #65; cleaned up some unnecessary NULL checks before delete
Thank you! I'll stay tuned! Mirco On Fri, Feb 5, 2016 at 6:41 PM, Frank Seide notifications@github.com
|
Yongqiang tracked it down--in decoding, the labels should not be referenced, but they were, because the logLLs formally depend on them, indirectly through the priors. The fix is to skip PreComputeNodes that have already been computed while analyzing which inputs an output depends on. This is in master now, but I do not have a positive test case for this. Would you mind trying it and letting me know whether this fixes it? |
Sure, tomorrow I will try it ;) On Fri, Feb 5, 2016 at 11:11 PM, Frank Seide notifications@github.com
|
Hi Frank, |
I confirm that now it works. |
thank your for your verification and feedback |
…uteNodes that have already been computed, addressing Issue microsoft#65; cleaned up some unnecessary NULL checks before delete
Hi All,
The Kaldi decoding fails with the new version of CNTK. If I use an older version of CNTK the decoding works fine. I find it is difficult to infer the issue from the error message. I have mentioned the error below. Please advice. Thank you.
`Post-processing network complete.
HTKMLFWriter::Init: reading output script file data-lda/test_eval92/split8/1/cntk_test.counts ... 560 entries
Allocating matrices for forward and/or backward propagation.
evaluate: reading 571 frames of 440c02010
evaluate: reading 571 frames of 440c02010
[CALL STACK]
/home/lahiru/Devinstall/cntk_github/CNTK/build/release/lib/libcntkmath.so ( Microsoft::MSR::CNTK::DebugUtil::PrintCallStack() + 0xbf ) [0x7ff296ba6cdf]
cntk ( void Microsoft::MSR::CNTK::ThrowFormattedstd::logic_error(char const_, ...) + 0xdd ) [0x53d5dd]
cntk ( Microsoft::MSR::CNTK::ComputationNode::NotifyFunctionValuesMBSizeModified() + 0x41c ) [0x53e57c]
cntk ( ) [0x758d37]
cntk ( Microsoft::MSR::CNTK::SimpleOutputWriter::WriteOutput(Microsoft::MSR::CNTK::IDataReader&, unsigned long, Microsoft::MSR::CNTK::IDataWriter&, std::vector<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >, std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > > const&, unsigned long, bool) + 0x363 ) [0x75bb63]
cntk ( void DoWriteOutput(Microsoft::MSR::CNTK::ConfigParameters const&) + 0x669 ) [0x760849]
cntk ( void DoCommands(Microsoft::MSR::CNTK::ConfigParameters const&) + 0xc07 ) [0x593c47]
cntk ( wmainOldCNTKConfig(int, wchar_t__) + 0x909 ) [0x535519]
cntk ( wmain1(int, wchar_t_*) + 0x68 ) [0x535be8]
cntk ( main + 0xd8 ) [0x529518]
/lib/x86_64-linux-gnu/libc.so.6 ( __libc_start_main + 0xf5 ) [0x7ff29582fec5]
cntk ( ) [0x52d4b7]
Closed Kaldi writer`
The text was updated successfully, but these errors were encountered: