Skip to content

Commit

Permalink
remove device from attention test
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTemaki committed Aug 2, 2023
1 parent 315b579 commit 390e95e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/test_enc_dec_att.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def test_encoder_decoder_attention_model():
output_dropout=0.1,
zoneout_drop_c=0.0,
zoneout_drop_h=0.0,
device="cpu",
)
decoder = AttentionLSTMDecoderV1(decoder_cfg)
target_labels = torch.randint(low=0, high=15, size=(10, 7)) # [B,N]
Expand All @@ -69,7 +68,6 @@ def forward_decoder(zoneout_drop_c: float, zoneout_drop_h: float):
output_dropout=0.1,
zoneout_drop_c=zoneout_drop_c,
zoneout_drop_h=zoneout_drop_h,
device="cpu",
)
decoder = AttentionLSTMDecoderV1(decoder_cfg)
decoder_logits, _ = decoder(encoder_outputs=encoder, labels=target_labels, enc_seq_len=encoder_seq_len)
Expand Down

0 comments on commit 390e95e

Please sign in to comment.