Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 5cb9e10

Browse files
committed
Remove faulty call with device to t5 forward method
1 parent 9048c8e commit 5cb9e10

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchtext/prototype/models/t5/modules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def _t5_multi_head_attention_forward(
258258
tgt_len,
259259
src_len,
260260
bidirectional=(not self.is_decoder),
261-
device=k.device,
262261
)
263262

264263
# Calculate attention and out projection

0 commit comments

Comments
 (0)