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

test_scores_cpu.sh « scores « scorer « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c6989853be85978d2075115e675410acdc7c42b (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
#!/bin/bash

#####################################################################
# SUMMARY: Re-score sentences on CPU
# TAGS: cpu scorer
#####################################################################

# Exit on error
set -e

# Skip if no MKL found
if [ ! $MRT_MARIAN_USE_MKL ]; then
    exit 100
fi

# Run scorer
$MRT_MARIAN/marian-scorer -c $MRT_MODELS/wmt16_systems/marian.en-de.scorer.yml --cpu-threads 2 \
  -t $(pwd)/scores_cpu.src.in $(pwd)/scores_cpu.trg.in > scores_cpu.out

# Compare scores
$MRT_TOOLS/diff-nums.py scores_cpu.out scores_cpu.expected -p 0.0003 -o scores_cpu.diff

# Exit with success code
exit 0