b656f8857d91b25d5de73de5e429638ece6b13ce,snntoolbox/model_libs/keras_input_lib.py,,extract,#Any#,28

Before Change


                    flattened = True
                if label in bn_layers:
                    parameters = next_layer.get_weights()  // W, b of next layer
                    print("Absorbing batch-normalization parameters into " +
                          "parameters of layer {}, {}.".format(k, label))
                    break
            parameters_norm = absorb_bn(parameters[0], parameters[1],
                                        bn_parameters[0], bn_parameters[1],
                                        bn_parameters[2], bn_parameters[3],

After Change


                                        layer.epsilon)
            // Remove Batch-normalization layer by setting gamma=1, beta=1,
            // mean=0, std=1
            zeros = np.zeros_like(bn_parameters[0])
            ones = np.ones_like(bn_parameters[0])
            layer.set_weights([ones, zeros, zeros, ones])
            // Replace parameters of preceding Conv or FC layer by parameters
            // that include the batch-normalization transformation.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: b656f8857d91b25d5de73de5e429638ece6b13ce
Time: 2016-08-15
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/keras_input_lib.py
Class Name:
Method Name: extract


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 74234df1f422cf85dff82a2f7b2b9c1e47358826
Time: 2016-08-02
Author: iulialexandra@ini.uzh.ch
File Name: snntoolbox/tests/rate_simulation_iulia.py
Class Name: Layer
Method Name: update_neurons


Project Name: HyperGAN/HyperGAN
Commit Name: 828381fe30ae454cda23b971991861346afd1b97
Time: 2018-11-02
Author: martyn@255bits.com
File Name: hypergan/optimizers/curl_optimizer.py
Class Name: CurlOptimizer
Method Name: apply_gradients