71d61f102189f8b7337567ca34ad590f2ddf4808,snntoolbox/simulation/backends/inisim/ttfs.py,SpikeMaxPooling2D,call,#SpikeMaxPooling2D#Any#Any#,414

Before Change


    def call(self, x, mask=None):
        Layer functionality.

        return MaxPooling2D.call(self, x)


custom_layers = {"SpikeFlatten": SpikeFlatten,
                 "SpikeDense": SpikeDense,

After Change


        // transmit new spikes. The output psp is nonzero wherever there has been
        // an input spike at any time during simulation.

        input_psp = MaxPooling2D.call(self, x)

        if self.spiketrain is not None:
            new_spikes = k.tf.logical_xor(k.greater(input_psp, 0),
                                          k.greater(self.last_spiketimes, 0))
            self.add_update([(self.spiketrain,
                              self.time * k.cast(new_spikes, k.floatx()))])

        psp = self.get_psp(input_psp)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 71d61f102189f8b7337567ca34ad590f2ddf4808
Time: 2018-02-27
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs.py
Class Name: SpikeMaxPooling2D
Method Name: call


Project Name: tensorflow/ranking
Commit Name: 515b80c9737f5e522d357c6d8d030d73327dd439
Time: 2020-01-13
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/metrics_impl.py
Class Name:
Method Name: _per_example_weights_to_per_list_weights


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 71d61f102189f8b7337567ca34ad590f2ddf4808
Time: 2018-02-27
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/backends/inisim/ttfs_dyn_thresh.py
Class Name: SpikeMaxPooling2D
Method Name: call