diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-12 17:28:50 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2018-06-12 17:28:50 +0300 |
commit | 394688a327d82cfcaee382acef431ce3eec95f82 (patch) | |
tree | 9a08e804e641d2dfbed07d652070e8dad240475c /tests/training/restart-optimizer/test_loading_adam_params.sh | |
parent | 0f59ae9a972d0c3477f1814e901f4dcbe465d990 (diff) |
Rename directories
Diffstat (limited to 'tests/training/restart-optimizer/test_loading_adam_params.sh')
-rw-r--r-- | tests/training/restart-optimizer/test_loading_adam_params.sh | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/training/restart-optimizer/test_loading_adam_params.sh b/tests/training/restart-optimizer/test_loading_adam_params.sh deleted file mode 100644 index 0a4b2b5..0000000 --- a/tests/training/restart-optimizer/test_loading_adam_params.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -x - -# Exit on error -set -e - -# Test code goes here -rm -rf adam_load adam_load_?.log -mkdir -p adam_load - -extra_opts="--no-shuffle --seed 7777 --maxi-batch 1 --maxi-batch-sort none --mini-batch 2 --dim-rnn 64 --dim-emb 32" - -$MRT_MARIAN/build/marian \ - -m adam_load/model.npz -t $MRT_DATA/train.max50.{en,de} -v vocab.en.yml vocab.de.yml \ - --disp-freq 1 --after-batches 3 -l 0.1 $extra_opts \ - --log adam_load_1.log - -test -e adam_load/model.npz -test -e adam_load/model.npz.optimizer.npz -test -e adam_load_1.log - -cat adam_load_1.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' > adam_load.out - -$MRT_MARIAN/build/marian \ - -m adam_load/model.npz -t $MRT_DATA/train.max50.{en,de} -v vocab.en.yml vocab.de.yml \ - --disp-freq 1 --after-batches 6 -l 0.1 $extra_opts \ - --log adam_load_2.log - -test -e adam_load/model.npz -test -e adam_load/model.npz.optimizer.npz -test -e adam_load_2.log - -cat adam_load_2.log | $MRT_TOOLS/strip-timestamps.sh | grep "Ep\. " | sed 's/ : Time.*//' >> adam_load.out - -# The allowed tolerance needs to be radiculously high as restarting the -# training is very instable on different GPU devices -$MRT_TOOLS/diff-floats.py -p 15.0 -n 1 adam_load.out adam_load.expected > adam_load.diff - -# Exit with success code -exit 0 |