Skip to content

Commit

Permalink
add back fairseq manual_seed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Kim committed Jun 2, 2022
1 parent e410998 commit f1c4bca
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def test_import_finetuning_model(self, config, _):
imported = import_fairseq_model(original).eval()

# Without mask
torch.manual_seed(0)
x = torch.randn(batch_size, num_frames)
ref = original(x, torch.zeros_like(x))["encoder_out"].transpose(0, 1)
hyp, _ = imported(x)
Expand Down

0 comments on commit f1c4bca

Please sign in to comment.