5a945d67b37120610880c3323224a4e86404ae1d,gpflow/mean_functions.py,Constant,__call__,#Constant#Any#,126
 
Before Change
    def __call__(self, X):
        shape = [tf.shape(X)[0], 1]
        return tf.tile(tf.reshape(self.c, (1, -1)), shape)
class Zero(Constant):
After Change
    def __call__(self, X):
        tile_shape = tf.concat([tf.shape(X)[:-1], [1]], axis=0,)
        reshape_shape = tf.concat(
            [tf.ones(shape=(tf.rank(X) - 1), dtype=default_int()), [-1]], axis=0,
        )
        return tf.tile(tf.reshape(self.c, reshape_shape), tile_shape)
class Zero(Constant):
    def __init__(self, output_dim=1):

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
 Project Name: GPflow/GPflow
 Commit Name: 5a945d67b37120610880c3323224a4e86404ae1d
 Time: 2020-08-27
 Author: dutordoirv@gmail.com
 File Name: gpflow/mean_functions.py
 Class Name: Constant
 Method Name: __call__
 Project Name: deepchem/deepchem
 Commit Name: 29c11f550c6b8d9e379afce9b9a2315552884b6c
 Time: 2017-03-22
 Author: bharath.ramsundar@gmail.com
 File Name: deepchem/models/tf_new_models/vina_model.py
 Class Name: VinaModel
 Method Name: construct_graph
 Project Name: GPflow/GPflow
 Commit Name: f3c511060ce62072a34a50319237d28b82d10448
 Time: 2020-08-27
 Author: dutordoirv@gmail.com
 File Name: gpflow/mean_functions.py
 Class Name: Constant
 Method Name: __call__