blob: 66c0fb3fc2101d9ca67de35c6e9075599203cc09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# Exit on error
set -e
# Test code goes here
mkdir -p toy
rm -f toy/* toy.log
$MRT_MARIAN/build/marian \
--seed 1111 --dim-emb 256 --dim-rnn 512 \
-m toy/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v toy/vocab.de.yml toy/vocab.en.yml \
--log toy.log --disp-freq 5 -e 5
test -e toy/vocab.en.yml
test -e toy/vocab.de.yml
test -e toy/model.npz
test -e toy/model.npz.yml
test -e toy/model.npz.amun.yml
cat toy.log | $MRT_TOOLS/extract-costs.sh > toy.out
$MRT_TOOLS/diff-nums.py toy.out toy.expected -p 0.99 -n 5 -o toy.diff
# Exit with success code
exit 0
|