Skip to content

Commit 6bd89df

Browse files
committed
fix to pretrain_dbn.sh (an error I introduced with a previous fix w.r.t. removing $tmpdir)
1 parent 4557f09 commit 6bd89df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

egs/wsj/s5/steps/nnet/pretrain_dbn.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ echo
118118
echo "# PREPARING FEATURES"
119119
if [ "$copy_feats" == "true" ]; then
120120
# re-save the features to local disk into /tmp/,
121-
trap "echo \"# Removing features tmpdir $tmpdir @ $(hostname)\"; ls $tmpdir; rm -r $tmpdir" INT QUIT TERM EXIT
122121
tmpdir=$(mktemp -d $copy_feats_tmproot)
122+
trap "echo \"# Removing features tmpdir $tmpdir @ $(hostname)\"; ls $tmpdir; rm -r $tmpdir" INT QUIT TERM EXIT
123123
copy-feats scp:$data/feats.scp ark,scp:$tmpdir/train.ark,$dir/train_sorted.scp || exit 1
124124
else
125125
# or copy the list,

0 commit comments

Comments
 (0)