mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
fix scaling converter test for decoder(predictor). (#553)
This commit is contained in:
parent
2636a3dd58
commit
235eb0746f
@ -181,7 +181,7 @@ def test_convert_scaled_to_non_scaled():
|
|||||||
y = torch.randint(low=1, high=vocab_size - 1, size=(N, U))
|
y = torch.randint(low=1, high=vocab_size - 1, size=(N, U))
|
||||||
|
|
||||||
d1 = model.decoder(y)
|
d1 = model.decoder(y)
|
||||||
d2 = model.decoder(y)
|
d2 = converted_model.decoder(y)
|
||||||
|
|
||||||
assert torch.allclose(d1, d2)
|
assert torch.allclose(d1, d2)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user