1ee6d86439ca85e5c8d6bf5f8112668b8b63de77,bindsnet/conversion/conversion.py,SubtractiveResetIFNodes,__init__,#SubtractiveResetIFNodes#,89

Before Change


            self.refrac = refrac

        self.v = self.reset * torch.ones(self.shape)  // Neuron voltages.
        self.refrac_count = torch.zeros(self.shape)  // Refractory period counters.

    def forward(self, x: torch.Tensor) -> None:
        // language=rst

After Change


            "reset", torch.tensor(reset, dtype=torch.float)
        )  // Post-spike reset voltage.
        self.register_buffer(
            "thresh", torch.tensor(thresh, dtype=torch.float)
        )  // Spike threshold voltage.
        self.register_buffer(
            "refrac", torch.tensor(refrac)
        )  // Post-spike refractory period.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: BindsNET/bindsnet
Commit Name: 1ee6d86439ca85e5c8d6bf5f8112668b8b63de77
Time: 2019-07-28
Author: danjsaund@gmail.com
File Name: bindsnet/conversion/conversion.py
Class Name: SubtractiveResetIFNodes
Method Name: __init__


Project Name: PIQuIL/QuCumber
Commit Name: 9a2903dac097a7f3633f6c828533ed385c7159c9
Time: 2019-07-17
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/data.py
Class Name:
Method Name: extract_refbasis_samples


Project Name: facebookresearch/fastMRI
Commit Name: 8abf45009f59f481db35eb2bd53d627f2c4ad6f7
Time: 2020-04-24
Author: sayantanbhadra83@gmail.com
File Name: models/varnet/varnet.py
Class Name: DataTransform
Method Name: __call__