Skip to content

Commit

Permalink
Merge pull request #353 from masac11/master
Browse files Browse the repository at this point in the history
fix bug of MultiDimensionalAttention function
  • Loading branch information
fangwei123456 committed Mar 23, 2023
2 parents 9d94c32 + c65867d commit 3aee47e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spikingjelly/activation_based/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,7 @@ def forward(self, x):
self.ca = ChannelAttention(C, reduction_c)
self.sa = SpatialAttention(kernel_size)
self.sigmoid = nn.Sigmoid()
self.relu = nn.ReLU()

def forward(self, x: torch.Tensor):
assert x.dim() == 5, ValueError(
Expand Down

0 comments on commit 3aee47e

Please sign in to comment.