Skip to content

Commit

Permalink
[egs] python3 compatibility in csj example script (#3123)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickychanhoyin authored and danpovey committed Mar 16, 2019
1 parent b4c7ab6 commit 461b50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/csj/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if [ $stage -le 12 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down

0 comments on commit 461b50c

Please sign in to comment.