40b2727bf2816b3539bbf809751d16a0effbcf01,tests/test_deepcopy.py,A,__init__,#A#,11

Before Change


class A(tf.Module):
    def __init__(self):
        self.var = tf.Variable([1.0])
        self.bijector = tfp.bijectors.Softplus()

    def __call__(self, x):
        return self.bijector(x)

After Change


class A(tf.Module):
    def __init__(self):
        self.var = tf.Variable([1.0])
        self.bijector = tfp.bijectors.Chain([
            tfp.bijectors.Softplus(),
            tfp.bijectors.Shift(1e-6)
        ])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: GPflow/GPflow
Commit Name: 40b2727bf2816b3539bbf809751d16a0effbcf01
Time: 2020-02-03
Author: art.art.v@gmail.com
File Name: tests/test_deepcopy.py
Class Name: A
Method Name: __init__


Project Name: thunlp/OpenKE
Commit Name: aa17828b585522bad1236fc0e027d0a58de1762a
Time: 2018-12-22
Author: 201511210110@mail.bnu.edu.cn
File Name: models/DistMult.py
Class Name: DistMult
Method Name: __init__


Project Name: thunlp/OpenKE
Commit Name: aa17828b585522bad1236fc0e027d0a58de1762a
Time: 2018-12-22
Author: 201511210110@mail.bnu.edu.cn
File Name: models/Analogy.py
Class Name: Analogy
Method Name: __init__