Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_test_dump_config_minimal_alias.sh « config « interface « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a47982e24bfcb738e0e3f187b6caf9517de9a400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Exit on error
set -e

rm -f dump_alias.{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 minimal > dump_alias.yml

# Remove first line and paths to train sets and vocabs
cat dump_alias.yml | tail -n +2 | grep -v '  - ' > dump_alias.out

# Compare
$MRT_TOOLS/diff.sh dump_alias.out dump_alias.expected > dump_alias.diff

# Exit with success code
exit 0