diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2019-02-08 19:16:52 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2019-02-08 19:16:52 +0300 |
commit | 0b842bcf78901d43d0d681360b7d6b90a8664ca0 (patch) | |
tree | 7ac88c7a3980b2fc9255f3690183a9e023a59eab | |
parent | 2bd5e05b434792ec2ede28867eb415b99754a269 (diff) |
Rename --dump-config explain to --dump-config expand
-rw-r--r-- | tests/interface/config/dump_expand.expected (renamed from tests/interface/config/dump_explain.expected) | 0 | ||||
-rw-r--r-- | tests/interface/config/test_dump_config_expand.sh | 18 | ||||
-rw-r--r-- | tests/interface/config/test_dump_config_explain.sh | 18 |
3 files changed, 18 insertions, 18 deletions
diff --git a/tests/interface/config/dump_explain.expected b/tests/interface/config/dump_expand.expected index 7437365..7437365 100644 --- a/tests/interface/config/dump_explain.expected +++ b/tests/interface/config/dump_expand.expected diff --git a/tests/interface/config/test_dump_config_expand.sh b/tests/interface/config/test_dump_config_expand.sh new file mode 100644 index 0000000..02b20c7 --- /dev/null +++ b/tests/interface/config/test_dump_config_expand.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Exit on error +set -e + +rm -f dump_expand.{yml,out} + +# Run with no config file +$MRT_MARIAN/marian --best-deep --type s2s --mini-batch 8 --dim-rnn 32 --dim-emb 16 --after-batches 2 --dump-config expand > dump_expand.yml + +# Remove first line and paths to train sets and vocabs +cat dump_expand.yml | tail -n +2 | grep -v ' - ' > dump_expand.out + +# Compare +$MRT_TOOLS/diff.sh dump_expand.out dump_expand.expected > dump_expand.diff + +# Exit with success code +exit 0 diff --git a/tests/interface/config/test_dump_config_explain.sh b/tests/interface/config/test_dump_config_explain.sh deleted file mode 100644 index 2f81245..0000000 --- a/tests/interface/config/test_dump_config_explain.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# Exit on error -set -e - -rm -f dump_explain.{yml,out} - -# Run with no config file -$MRT_MARIAN/marian --best-deep --type s2s --mini-batch 8 --dim-rnn 32 --dim-emb 16 --after-batches 2 --dump-config explain > dump_explain.yml - -# Remove first line and paths to train sets and vocabs -cat dump_explain.yml | tail -n +2 | grep -v ' - ' > dump_explain.out - -# Compare -$MRT_TOOLS/diff.sh dump_explain.out dump_explain.expected > dump_explain.diff - -# Exit with success code -exit 0 |