You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through your code when I noticed this piece (sorry cant link to the precise line in a jupyter notebook, but it's in the OutputDataToSpikingPerceptronLayer class):
class OutputDataToSpikingPerceptronLayer(nn.Module):
...
if average_output:
self.reducer = lambda x, dim: x.sum(dim=dim)
else:
self.reducer = lambda x, dim: x.mean(dim=dim)
...
From you comments, it seems that the correct version should be
Hi, nice work with the project!
I was going through your code when I noticed this piece (sorry cant link to the precise line in a jupyter notebook, but it's in the
OutputDataToSpikingPerceptronLayer
class):From you comments, it seems that the correct version should be
i.e. if average_output flag is True, compute mean, otherwise do a sum?
The text was updated successfully, but these errors were encountered: