5c3de2518362675e14b15f87044742a94b816ef2,snntoolbox/simulation/target_simulators/loihi_target_sim.py,,normalize_loihi_network,#Any#Any#,394

Before Change


        // threshold to tune. So we only need to update the input to the next
        // layer, and propagate the scale. The input layer (i == 0) counts as
        // spiking.
        if i > 0 and not is_spiking(layer, config):
            x = y
            scales[layer.name] = scales[model_copy.layers[i - 1].name]
            continue

        // The highest EPSP determines whether to raise threshold.
        y_max = get_scale_fac(y[np.nonzero(y)], 100)
        print("Maximum increase in compartment voltage per timestep: {}."
              "".format(int(y_max)))

After Change


            // Loihi AveragePooling layers get weights of ones. To reproduce
            // this in our Keras model, we need to apply the same
            // transformations as for a regular layer that has weights.
            elif "AveragePooling" in get_type(layer):
                a = np.prod(layer.pool_size) * (2 ** num_weight_bits - 1)
                y = y * _weight_gain * 2 ** (weight_exponent + prev_scale) * a
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 5c3de2518362675e14b15f87044742a94b816ef2
Time: 2019-08-20
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/loihi_target_sim.py
Class Name:
Method Name: normalize_loihi_network


Project Name: studioml/studio
Commit Name: 28e3d00f5e8625dc6d2743749a2d25acc040e875
Time: 2021-02-11
Author: andrei.denissov@cognizant.com
File Name: studio/s3_storage_handler.py
Class Name: S3StorageHandler
Method Name: __init__


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: fc5da69efb1f5f897c664a9c6ed32fb17270afaf
Time: 2017-08-18
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/parsing/utils.py
Class Name: AbstractModelParser
Method Name: get_inbound_names