Skip to content

Commit 633e61c

Browse files
MartinKocourdanpovey
authored andcommitted
[src] Fix wrong assertion failure in nnet3-am-compute (#3106)
1 parent 3f8b6b2 commit 633e61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nnet2bin/nnet-am-compute.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int main(int argc, char *argv[]) {
9494
int64 num_done = 0, num_frames = 0;
9595

9696
Vector<BaseFloat> inv_priors(am_nnet.Priors());
97-
KALDI_ASSERT(inv_priors.Dim() == am_nnet.NumPdfs() &&
97+
KALDI_ASSERT(!divide_by_priors || inv_priors.Dim() == am_nnet.NumPdfs() &&
9898
"Priors in neural network not set up.");
9999
inv_priors.ApplyPow(-1.0);
100100

0 commit comments

Comments
 (0)