Skip to content

Commit c7e15a7

Browse files
committed
fix: define shape variables in forward method of SpikingSelfAttention class
1 parent 9eb2844 commit c7e15a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tether/nn/attention.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def forward(self, x_seq):
5757
torch.Tensor
5858
Output sequence of shape (T, B, N, D).
5959
"""
60+
T, B, N, D = x_seq.shape
6061
x_flat = x_seq.view(T, B * N, D)
6162

6263
# Q, K, V Generation through LIF neurons

0 commit comments

Comments
 (0)