2a64a9d6d97a5c203bd58c0d039eb7e63c07e80f,snntoolbox/simulation/backends/inisim/ttfs.py,SpikeLayer,init_neurons,#SpikeLayer#Any#,249

Before Change


        output_shape = self.compute_output_shape(input_shape)
        self.v_thresh = k.variable(self._v_thresh)
        self.mem = k.variable(self.init_membrane_potential(output_shape))
        self.time = k.variable(self.dt)
        // To save memory and computations, allocate only where needed:
        if self.tau_refrac > 0:
            self.refrac_until = k.zeros(output_shape)
        if any({"spiketrains", "spikerates", "correlation", "spikecounts",

After Change



        output_shape = self.compute_output_shape(input_shape)
        if self.v_thresh is None:
            self.v_thresh = tf.Variable(self._v_thresh, name="v_thresh",
                                        trainable=False)
        if self.mem is None:
            self.mem = tf.Variable(self.init_membrane_potential(output_shape),
                                   name="v_mem", trainable=False)
        if self.time is None:
            self.time = tf.Variable(self.dt, name="dt", trainable=False)
        // To save memory and computations, allocate only where needed:
        if self.tau_refrac > 0 and self.refrac_until is None:
            self.refrac_until = tf.Variable(
                tf.zeros(output_shape), name="refrac_until", trainable=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 2a64a9d6d97a5c203bd58c0d039eb7e63c07e80f
Time: 2020-09-28
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs.py
Class Name: SpikeLayer
Method Name: init_neurons


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cffd5df804e8c1405adfc6616bad2253fe5825b0
Time: 2020-05-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs_dyn_thresh.py
Class Name: SpikeDense
Method Name: build


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 2a64a9d6d97a5c203bd58c0d039eb7e63c07e80f
Time: 2020-09-28
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs.py
Class Name: SpikeLayer
Method Name: init_neurons


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: cffd5df804e8c1405adfc6616bad2253fe5825b0
Time: 2020-05-02
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs_dyn_thresh.py
Class Name: SpikeConv2D
Method Name: build