blob: c3550385df67bfe2ec30d7043e3e63fdd2bf3503 (
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
26
27
|
#!/bin/bash -x
# Exit on error
set -e
# Test code goes here
rm -rf finish finish_?.log
mkdir -p finish
$MRT_MARIAN/build/marian \
-m finish/model.npz -t $MRT_DATA/train.max50.{en,de} -v vocab.en.yml vocab.de.yml \
--after-batches 5 --log finish_1.log
test -e finish/model.npz
test -e finish/model.npz.yml
test -e finish_1.log
grep -q "Training finished" finish_1.log
$MRT_MARIAN/build/marian -c finish/model.npz.yml --log finish_2.log
grep -q "Loading model" finish_2.log
grep -q "Training finished" finish_2.log
# Exit with success code
exit 0
|