d59159739f78bacf661fc0a8b47c9b960fe600f6,snntoolbox/target_simulators/MegaSim_target_sim.py,SNN_compiled,poisson_spike_generator_megasim_flatten,#SNN_compiled#Any#,850
Before Change
// Create poisson input.
spike_snapshot = np.random.random_sample(mnist_digit.shape) * rescale_fac
inp = (spike_snapshot <= mnist_digit).astype("float32")
neuron_id = np.nonzero(inp)[0]
spike_for_t = np.zeros((len(neuron_id),6),dtype="int")
spike_for_t[:,0] = t
spike_for_t[:,1] = -1
spike_for_t[:,2] = -1
After Change
spike_snapshot = np.random.random_sample(mnist_digit.shape) * rescale_fac
inp = (spike_snapshot <= mnist_digit).astype("float32")
// find the indexes of the non-zero
neuron_id = np.nonzero(inp)
// check if input is flattened or 2d in order to extract the X,Y addresses correctly
if len(inp.shape)==1:
megasim_x = neuron_id[0]
megasim_y = 0
else:
megasim_x = neuron_id[2]
megasim_y = neuron_id[1]
spike_for_t = np.zeros((len(megasim_x), 6), dtype="int")
spike_for_t[:,0] = t // time-stamps
spike_for_t[:,1] = -1 // REQ
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: d59159739f78bacf661fc0a8b47c9b960fe600f6
Time: 2016-08-11
Author: evangelos.stromatias@imse-cnm.csic.es
File Name: snntoolbox/target_simulators/MegaSim_target_sim.py
Class Name: SNN_compiled
Method Name: poisson_spike_generator_megasim_flatten
Project Name: scipy/scipy
Commit Name: 7194a96b72d1bd4a01b5027d7b1421169f352d05
Time: 2016-01-07
Author: n59_ru@hotmail.com
File Name: scipy/interpolate/_monotone.py
Class Name: Akima1DInterpolator
Method Name: __init__
Project Name: facebookresearch/ParlAI
Commit Name: 7754695ccf3bd340a27e64604408105cb00d2501
Time: 2019-02-27
Author: edinan@fb.com
File Name: parlai/core/torch_ranker_agent.py
Class Name: TorchRankerAgent
Method Name: _find_match