Skip to content

Commit 5ca36b9

Browse files
freewymdanpovey
authored andcommitted
[src] relax assertion constraint slightly (RE matrix orthonormalization) (#3767)
1 parent 42c3888 commit 5ca36b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnet3/nnet-utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ void ConstrainOrthonormalInternal(BaseFloat scale, CuMatrixBase<BaseFloat> *M) {
10451045
// the learning rate slower to reduce the risk of divergence, since the
10461046
// update may not be stable for starting points far from equilibrium.
10471047
BaseFloat ratio = (trace_P_P * P.NumRows() / (trace_P * trace_P));
1048-
KALDI_ASSERT(ratio > 0.999);
1048+
KALDI_ASSERT(ratio > 0.99);
10491049
if (ratio > 1.02) {
10501050
update_speed *= 0.5; // Slow down the update speed to reduce the risk of divergence.
10511051
if (ratio > 1.1) update_speed *= 0.5; // Slow it down even more.

0 commit comments

Comments
 (0)