From 23c4ce09fe92b4301c0a332b5647ef7eca2135d2 Mon Sep 17 00:00:00 2001 From: Jeremy Fix Date: Tue, 16 Jan 2024 09:41:01 +0100 Subject: [PATCH] fix the unit testr --- .../02-pytorch-asr/test_implementation.py | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/LabsSolutions/02-pytorch-asr/test_implementation.py b/LabsSolutions/02-pytorch-asr/test_implementation.py index 5c28725..feddc24 100644 --- a/LabsSolutions/02-pytorch-asr/test_implementation.py +++ b/LabsSolutions/02-pytorch-asr/test_implementation.py @@ -96,17 +96,18 @@ def test_waveform_processor(): fail(f"was expecting {expected_shape}") expected_out = [ - 13.3708, - 22.4177, - -6.6840, - 11.3768, - 17.2921, - 18.2367, - 12.3000, - 15.5621, - 6.3457, - 14.2817, + 29.68541717529297, + 31.100982666015625, + 26.96457862854004, + 29.370576858520508, + 28.93488883972168, + 32.764102935791016, + 33.291133880615234, + 29.038545608520508, + 28.55718231201172, + 33.35734558105469, ] + info(f"[2/2] Got the output at [0, :, 0] = {out[0, :, 0].tolist()}") if test_equal(list(out[0, :, 0]), expected_out, eps=1e-2): succeed()