5a945d67b37120610880c3323224a4e86404ae1d,gpflow/mean_functions.py,Constant,__call__,#Constant#,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
self.c = Parameter(c)
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):
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: 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__
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: deepmind/sonnet
Commit Name: e164c3574da160fb72fc962947a783fa299424e3
Time: 2019-07-07
Author: tomhennigan@google.com
File Name: sonnet/src/batch_apply.py
Class Name:
Method Name: merge_leading_dims