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

test_ende_batch32.sh « server « tests - github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 95e967be4ca4ffcbe0cea1640e4dc43e8bdc631d (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
28
#!/bin/bash

#####################################################################
# SUMMARY: Translate with mini-batch 32 using marian-server
# TAGS: server
#####################################################################

# Exit on error
set -e

clean_up() {
    kill $SERVER_PID || :
}
trap clean_up EXIT

# Test code goes here
$MRT_MARIAN/marian-server -c $MRT_MODELS/wmt16_systems/marian.en-de.yml -p 8766 \
    --mini-batch 32 --maxi-batch 1 > server.b32.log 2>&1 &
SERVER_PID=$!

sleep 20

python3 $MRT_MARIAN/../scripts/server/client_example.py -p 8766 -b 32 < text.in > text.b32.out
kill $SERVER_PID
$MRT_TOOLS/diff.sh text.b32.out text.expected > text.diff

# Exit with success code
exit 0