Skip to content

Commit cdf2d68

Browse files
authored
[egs] python3 compatibility fix (kaldi-asr#3937)
1 parent 08d17da commit cdf2d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/swbd/s5c/local/chain/multi_condition/run_tdnn_aug_1a.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if [ $stage -le 14 ]; then
128128
echo "$0: creating neural net configs using the xconfig parser";
129129

130130
num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')
131-
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
131+
learning_rate_factor=$(echo "print(0.5/$xent_regularize)" | python3)
132132
affine_opts="l2-regularize=0.01 dropout-proportion=0.0 dropout-per-dim=true dropout-per-dim-continuous=true"
133133
tdnnf_opts="l2-regularize=0.01 dropout-proportion=0.0 bypass-scale=0.66"
134134
linear_opts="l2-regularize=0.01 orthonormal-constraint=-1.0"

0 commit comments

Comments
 (0)