c570664aadb7cd1a3b32d2c6842e88e42150e18e,snntoolbox/core/inisim.py,,get_new_mem,#Any#,172
Before Change
masked_impulse = self.impulse if settings["tau_refrac"] == 0 else \
t.set_subtensor(self.impulse[t.nonzero(self.refrac_until > self.time)],
0.)
return self.mem + masked_impulse
def set_reset_mem(self, mem, spikes):
After Change
self.mem + masked_impulse, self.mem)
elif settings["filename_clamp_indices"] != "":
// Set clamp-duration by a specific delay from layer to layer.
new_mem = theano.ifelse.ifelse(t.lt(self.time, self.clamp_idx),
self.mem, self.mem + masked_impulse)
elif v_clip:
// Clip membrane potential to [-2, 2] to prevent too strong accumulation.
new_mem = theano.tensor.clip(self.mem + masked_impulse, -3, 3)
else:
new_mem = self.mem + masked_impulse
return new_mem
def set_reset_mem(self, mem, spikes):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: c570664aadb7cd1a3b32d2c6842e88e42150e18e
Time: 2017-05-05
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: get_new_mem
Project Name: rodluger/starry
Commit Name: bd34c63dde8851b0a5c53aa41f7759656678e609
Time: 2020-05-27
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsYlm
Method Name: tensordotD
Project Name: rodluger/starry
Commit Name: 1ced2f1e2b9006f0ab5bc98328570da9d2254f50
Time: 2020-05-04
Author: rodluger@gmail.com
File Name: starry/_core/core.py
Class Name: OpsReflected
Method Name: X