未验证 提交 35dee464 编写于 作者: E Egor Pugin 提交者: GitHub

Merge pull request #3549 from stweil/issue1573

Abort LSTM training with integer model (fixes issue #1573)
......@@ -105,6 +105,10 @@ bool LSTMTrainer::TryLoadingCheckpoint(const char *filename, const char *old_tra
if (!ReadTrainingDump(data, *this)) {
return false;
}
if (IsIntMode()) {
tprintf("Error, %s is an integer (fast) model, cannot continue training\n", filename);
return false;
}
if (((old_traineddata == nullptr || *old_traineddata == '\0') &&
network_->NumOutputs() == recoder_.code_range()) ||
filename == old_traineddata) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册