Skip to content

Commit

Permalink
fix the unit testr
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfix committed Jan 16, 2024
1 parent ab75310 commit 23c4ce0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions LabsSolutions/02-pytorch-asr/test_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 23c4ce0

Please sign in to comment.