Skip to content

Commit

Permalink
Do not set contiSuccUpdate to zero when cost is NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongkaifu committed May 15, 2024
1 parent d14db20 commit 7fe451d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Seq2SeqSharp/Tools/BaseSeq2SeqFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ internal void TrainOneEpoch(int ep, ICorpus<IPairBatch> trainCorpus, ICorpus<IPa
throw new WeightsCorruptedException($"The weights has been corrupted. Abort training and please check checkpoint files.");
}

contiSuccUpdate = 0;
//contiSuccUpdate = 0;
break;
}

Expand Down

0 comments on commit 7fe451d

Please sign in to comment.