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:
authorPedro Coelho <pedrodiascoelho97@gmail.com>2021-02-23 16:28:08 +0300
committerPedro Coelho <pedrodiascoelho97@gmail.com>2021-02-23 16:28:08 +0300
commit3fca60b415155ee743002adae1f43c5a938de936 (patch)
tree45f3b1fb79463ca8e6215627e713108b58a33ae5
parent0a396730bea7ca4ab5e732d39f510fde90c7dabe (diff)
add verification of factors activation on the decoder test
-rw-r--r--tests/decoder/factors/test_factors.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/decoder/factors/test_factors.sh b/tests/decoder/factors/test_factors.sh
index ac89b80..ccda2c6 100644
--- a/tests/decoder/factors/test_factors.sh
+++ b/tests/decoder/factors/test_factors.sh
@@ -10,10 +10,14 @@
set -e
# Remove old artifacts
-rm -f factors.{out,diff}
+rm -f factors.{out,diff,log}
# Run marian decoder
-$MRT_MARIAN/marian-decoder -c $MRT_MODELS/factors/model.npz.decoder.yml < text.in > factors.out
+$MRT_MARIAN/marian-decoder -c $MRT_MODELS/factors/model.npz.decoder.yml --log factors.log < text.in > factors.out
+
+#checks factors usage
+grep -q "Factored embeddings enabled" factors.log
+grep -q "Factored outputs enabled" factors.log
# Compare the output with the expected output
$MRT_TOOLS/diff.sh factors.out factors.expected > factors.diff