From 96e40b77feda7a6742857c5d60ad8c62dc2e470b Mon Sep 17 00:00:00 2001 From: Roman Grundkiewicz Date: Tue, 10 Nov 2020 01:46:33 -0800 Subject: Update expected output and precision for optimized-opt --- .../features/quantized-model/quantized-opt.expected | 20 ++++++++++---------- .../test_quantmodel_with_optimization.sh | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/training/features/quantized-model/quantized-opt.expected b/tests/training/features/quantized-model/quantized-opt.expected index d413a9c..6ccc2e0 100644 --- a/tests/training/features/quantized-model/quantized-opt.expected +++ b/tests/training/features/quantized-model/quantized-opt.expected @@ -1,10 +1,10 @@ -225.25146484 -244.05734253 -230.04736328 -224.87918091 -213.11819458 -204.42819214 -198.22373962 -190.55807495 -194.42228699 -196.07421875 +225.53999329 +244.43618774 +230.57369995 +225.52883911 +213.84687805 +204.98857117 +198.73059082 +191.04969788 +194.96365356 +196.72579956 diff --git a/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh b/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh index b4a8dbf..4a88059 100644 --- a/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh +++ b/tests/training/features/quantized-model/test_quantmodel_with_optimization.sh @@ -27,7 +27,7 @@ test -e $PREFIX.log # Compare the current output with the expected output cat $PREFIX.log | $MRT_TOOLS/extract-costs.sh > $PREFIX.out -$MRT_TOOLS/diff-nums.py $PREFIX.out $PREFIX.expected -o $PREFIX.diff +$MRT_TOOLS/diff-nums.py $PREFIX.out $PREFIX.expected -o $PREFIX.diff -p 0.01 # make sure that the resulting model has no more than 256 different values (i.e. quantized) $MRT_TOOLS/check-model-unique-vals.py $PREFIX/model.npz -b 8 -- cgit v1.2.3