I find this bug is:
bool binary;
kaldi::Input ki(this->model_path_, &binary);
trans_model->Read(ki.Stream(), binary);
am_nnet->Read(ki.Stream(), binary);
kaldi::nnet3::SetBatchnormTestMode(true, &(am_nnet->GetNnet()));
kaldi::nnet3::SetDropoutTestMode(true, &(am_nnet->GetNnet()));
kaldi::nnet3::CollapseModel(kaldi::nnet3::CollapseModelConfig(), &(am_nnet->GetNnet()));
this red code report this prolbem?
I have been looking for this problem for a long time.
But in the Debug x64 is normal.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Assertion Failed!
Program: ...njos\vs\kaldi\kaldi-project\x64\Release\kaldi-online2-jni.exe
File: minkernel\crts\ucrt\src\appcrt\lowio\read.cpp
Line: 381
Expression: _osfile(fh) & FOPEN
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
Stop(A) Retry (R) Ignore(I)
---------------------------