diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-07-30 23:52:14 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-07-30 23:52:14 +0300 |
commit | 484132534b9ae9b91cdc765cd78636100912f689 (patch) | |
tree | b93c810082c462c8cce7319d770fefd8a7f855fc /tests | |
parent | 4c147b8eddd4bd32a66c67131b3a8f5a6ec3fa49 (diff) |
Use diff-floats instead diff
Diffstat (limited to 'tests')
-rw-r--r-- | tests/decoder/align-ensemble/test_align_ensemble.sh | 2 | ||||
-rw-r--r-- | tests/decoder/align-ensemble/test_align_ensemble_beam_1.sh | 2 | ||||
-rw-r--r-- | tests/decoder/align/test_align_nbest.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/decoder/align-ensemble/test_align_ensemble.sh b/tests/decoder/align-ensemble/test_align_ensemble.sh index 25e5834..4967a7f 100644 --- a/tests/decoder/align-ensemble/test_align_ensemble.sh +++ b/tests/decoder/align-ensemble/test_align_ensemble.sh @@ -5,7 +5,7 @@ set -e # Test code goes here $MRT_MARIAN/build/marian-decoder -c $MRT_MODELS/wmt16_systems/marian.en-de.ensemble.yml --mini-batch 32 -b 5 --alignment < text.in > align.out -diff align.out align.expected > align.diff +$MRT_TOOLS/diff-floats.py -p 0.0001 align.out align.expected > align.diff # Exit with success code exit 0 diff --git a/tests/decoder/align-ensemble/test_align_ensemble_beam_1.sh b/tests/decoder/align-ensemble/test_align_ensemble_beam_1.sh index 3daba8e..65c01c1 100644 --- a/tests/decoder/align-ensemble/test_align_ensemble_beam_1.sh +++ b/tests/decoder/align-ensemble/test_align_ensemble_beam_1.sh @@ -5,7 +5,7 @@ set -e # Test code goes here $MRT_MARIAN/build/marian-decoder -c $MRT_MODELS/wmt16_systems/marian.en-de.ensemble.yml --mini-batch 1 -b 1 --alignment < text.in > align.b1.out -diff align.b1.out align.b1.expected > align.b1.diff +$MRT_TOOLS/diff-floats.py -p 0.0001 align.b1.out align.b1.expected > align.b1.diff # Exit with success code exit 0 diff --git a/tests/decoder/align/test_align_nbest.sh b/tests/decoder/align/test_align_nbest.sh index ae228f4..bcb0705 100644 --- a/tests/decoder/align/test_align_nbest.sh +++ b/tests/decoder/align/test_align_nbest.sh @@ -5,7 +5,7 @@ set -e # Test code goes here $MRT_MARIAN/build/marian-decoder -c $MRT_MODELS/wmt16_systems/marian.en-de.yml --mini-batch 16 -b 3 --n-best --alignment < text.in > align_nbest.out -diff align_nbest.out align_nbest.expected > align_nbest.diff +$MRT_TOOLS/diff-floats.py -p 0.0001 align_nbest.out align_nbest.expected > align_nbest.diff # Exit with success code exit 0 |