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

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

# Exit on error
set -e

# Skip if no CUDNN found
if [ ! $MRT_MARIAN_USE_CUDNN ]; then
    exit 100
fi

# Test code goes here
$MRT_MARIAN/build/marian-decoder -c $MRT_MODELS/char-s2s/translate.yml < text.in > text.out
$MRT_TOOLS/diff.sh text.out text.expected > text.diff

# Exit with success code
exit 0