#!/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.{en,de}.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-floats.py toy.out toy.expected -p 0.99 -n 5 > toy.diff # Exit with success code exit 0