Skip to content

Commit

Permalink
fix bug (#105)
Browse files Browse the repository at this point in the history
Co-authored-by: bamsumit <bam_sumit@hotmail.com>
  • Loading branch information
fangwei123456 and bamsumit committed Sep 22, 2022
1 parent ad80161 commit fd4a516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lava/lib/dl/slayer/block/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def forward(self, x):
if self.neuron is not None:
self.input_shape = self.neuron.shape
else:
self.input_shape = input.shape[1:-1]
self.input_shape = x.shape[1:-1]

if self.count_log is True:
return x, torch.mean(x > 0)
Expand Down

0 comments on commit fd4a516

Please sign in to comment.