Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-11-29 15:18:15 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2018-11-29 15:18:15 +0300
commit84b698b2443cd9f0d00b81c1791386f74b998695 (patch)
treefcebaf23e63aecb888eea555503aca19f716e9e6
parentbe1ebf660f1e6fdad72c2fb54d7e984802e3f2ab (diff)
Handle possible segmentation fault
-rw-r--r--tests/training/features/data-weighting/test_length_mismatch_warnings.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/training/features/data-weighting/test_length_mismatch_warnings.sh b/tests/training/features/data-weighting/test_length_mismatch_warnings.sh
index 9480677..0253e6e 100644
--- a/tests/training/features/data-weighting/test_length_mismatch_warnings.sh
+++ b/tests/training/features/data-weighting/test_length_mismatch_warnings.sh
@@ -13,10 +13,10 @@ sed -i '2s/1 1 /1 /g' warn.weights.txt
sed -i '3s/1 /1 1 /g' warn.weights.txt
$MRT_MARIAN/marian \
- --seed 1111 --dim-emb 64 --dim-rnn 128 --optimizer sgd \
+ --seed 1111 --dim-emb 64 --dim-rnn 128 --optimizer sgd -e 1 \
-m warn/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v vocab.{de,en}.yml \
- --log warn.log -e 1 \
- --data-weighting warn.weights.txt --data-weighting-type word
+ --data-weighting warn.weights.txt --data-weighting-type word \
+ > warn.log 2>&1 || true
test -e warn.log
grep -qi "[warn].*number of weights.* does not match.* words.* line #1" warn.log