c23aaeec82f5d1d5f5876d15f7adfc18ba399da5,pytorch2keras/normalization_layers.py,,convert_instancenorm,#Any#Any#Any#Any#Any#Any#Any#,64

Before Change


    assert(len(inputs) == 3)

    // Use previously taken constants
    assert(inputs[-2] + "_np" in layers)
    assert(inputs[-1] + "_np" in layers)
    gamma = layers[inputs[-2] + "_np"]
    beta = layers[inputs[-1] + "_np"]

After Change


    if inputs[-1] + "_np" in layers:
        beta = layers[inputs[-1] + "_np"]
    else:
        beta = weights[bias_name].numpy()

    def target_layer(x, epsilon=params["epsilon"], gamma=gamma, beta=beta):
        layer = tf.contrib.layers.instance_norm(
            x,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: nerox8664/pytorch2keras
Commit Name: c23aaeec82f5d1d5f5876d15f7adfc18ba399da5
Time: 2019-03-11
Author: nerox8664@gmail.com
File Name: pytorch2keras/normalization_layers.py
Class Name:
Method Name: convert_instancenorm


Project Name: tyarkoni/pliers
Commit Name: 3942dbbb7e343bfe759943eb7acfd53322dd7bc6
Time: 2021-01-05
Author: rbrrcc@gmail.com
File Name: pliers/tests/extractors/test_model_extractors.py
Class Name:
Method Name: test_tfhub_text


Project Name: bethgelab/foolbox
Commit Name: bf635f90dae66e4ddd3e1f342dca925b3c99faf7
Time: 2020-02-11
Author: git@jonasrauber.de
File Name: foolbox/attacks/binarization.py
Class Name: BinarizationRefinementAttack
Method Name: __call__


Project Name: rusty1s/pytorch_geometric
Commit Name: 013a73545712580cde4b8dece8bd0813a295c8f9
Time: 2020-01-15
Author: thomas.chaton.ai@gmail.com
File Name: test/transforms/test_grid_sampling.py
Class Name:
Method Name: test_grid_sampling


Project Name: reinforceio/tensorforce
Commit Name: 3441307d09545ca741396122e2ce83d56c7fcebc
Time: 2020-05-06
Author: alexkuhnle@t-online.de
File Name: test/test_parameters.py
Class Name: TestParameters
Method Name: float_unittest


Project Name: calico/basenji
Commit Name: 5c8dbdda60bc0290e967c37a55f47ba3e4342882
Time: 2019-09-29
Author: drk@calicolabs.com
File Name: basenji/dataset.py
Class Name: SeqDataset
Method Name: numpy