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
path: root/tests
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundkiewicz@gmail.com>2020-11-10 12:46:33 +0300
committerRoman Grundkiewicz <rgrundkiewicz@gmail.com>2020-11-10 12:46:33 +0300
commit96e40b77feda7a6742857c5d60ad8c62dc2e470b (patch)
treeaa09f094bfc1163d80b66d8d24711b88dcf643aa /tests
parent844a4eb101002eba2d48c6e8ef60525a62eeeee1 (diff)
Update expected output and precision for optimized-opt
Diffstat (limited to 'tests')
-rw-r--r--tests/training/features/quantized-model/quantized-opt.expected20
-rw-r--r--tests/training/features/quantized-model/test_quantmodel_with_optimization.sh2
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/training/features/quantized-model/quantized-opt.expected b/tests/training/features/quantized-model/quantized-opt.expected
index d413a9c..6ccc2e0 100644
--- a/tests/training/features/quantized-model/quantized-opt.expected
+++ b/tests/training/features/quantized-model/quantized-opt.expected
@@ -1,10 +1,10 @@
-225.25146484
-244.05734253
-230.04736328
-224.87918091
-213.11819458
-204.42819214
-198.22373962
-190.55807495
-194.42228699
-196.07421875
+225.53999329
+244.43618774
+230.57369995
+225.52883911
+213.84687805
+204.98857117
+198.73059082
+191.04969788
+194.96365356
+196.72579956
diff --git a/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh b/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh
index b4a8dbf..4a88059 100644
--- a/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh
+++ b/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh
@@ -27,7 +27,7 @@ test -e $PREFIX.log
# Compare the current output with the expected output
cat $PREFIX.log | $MRT_TOOLS/extract-costs.sh > $PREFIX.out
-$MRT_TOOLS/diff-nums.py $PREFIX.out $PREFIX.expected -o $PREFIX.diff
+$MRT_TOOLS/diff-nums.py $PREFIX.out $PREFIX.expected -o $PREFIX.diff -p 0.01
# make sure that the resulting model has no more than 256 different values (i.e. quantized)
$MRT_TOOLS/check-model-unique-vals.py $PREFIX/model.npz -b 8