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:
-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