1ee6d86439ca85e5c8d6bf5f8112668b8b63de77,bindsnet/conversion/conversion.py,SubtractiveResetIFNodes,__init__,#SubtractiveResetIFNodes#,89
Before Change
self.thresh = thresh
// Post-spike refractory period.
if isinstance(refrac, float):
self.refrac = torch.tensor(refrac)
else:
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:
After Change
)
self.register_buffer(
"reset", torch.tensor(reset, dtype=torch.float)
) // Post-spike reset voltage.
self.register_buffer(
"thresh", torch.tensor(thresh, dtype=torch.float)
) // Spike threshold voltage.
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: facebookresearch/pythia
Commit Name: ca78547252459e307031f1493771f524f83037bf
Time: 2020-09-11
Author: vedanujg@gmail.com
File Name: mmf/modules/embeddings.py
Class Name: BertVisioLinguisticEmbeddings
Method Name: get_position_embeddings_visual
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