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

Commit 882e48b

Browse files
committed
Add device to Attention obj
1 parent 5cb9e10 commit 882e48b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchtext/prototype/models/t5/modules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def __init__(
7474
else:
7575
self.relative_attention_bias = None
7676

77+
self.device = device
78+
7779
def forward(
7880
self,
7981
query: Tensor,

0 commit comments

Comments
 (0)