e2edc09327f8ba14b4bfa0ac2b0dc84ee4e7e085,bindsnet/network/topology.py,SparseConnection,compute,#SparseConnection#Any#,538

Before Change


        :param s: Incoming spikes.
        :return: Spikes multiplied by synapse weights.
        
        s = s.float().view(-1, 1)
        a = self.w.t().mm(s)
        return a.view(*self.target.shape)

After Change


        :param s: Incoming spikes.
        :return: Spikes multiplied by synapse weights.
        
        return torch.mm(self.w, s.unsqueeze(-1).float()).squeeze(-1)

    def update(self, **kwargs) -> None:
        // language=rst
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: BindsNET/bindsnet
Commit Name: e2edc09327f8ba14b4bfa0ac2b0dc84ee4e7e085
Time: 2018-11-06
Author: djsaunde@umass.edu
File Name: bindsnet/network/topology.py
Class Name: SparseConnection
Method Name: compute


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: b591a7aecce5b8de42a0dd7bba62780675d34fce
Time: 2019-04-30
Author: eriklindernoren@live.se
File Name: utils/datasets.py
Class Name: ImageFolder
Method Name: __getitem__


Project Name: maciejkula/spotlight
Commit Name: 70e4d7fe60a9658bb27b9f5fb67592a1222b2ec3
Time: 2017-07-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: PoolNet
Method Name: user_representation