08014eea360fd8d66b7baab19cdb9335f52c167b,keras/backend/tensorflow_backend.py,,repeat,#Any#Any#,760
Before Change
assert ndim(x) == 2
tensors = [x] * n
stacked = tf.pack(tensors)
return tf.transpose(stacked, (1, 0, 2) )
def tile(x, n):
After Change
the output will have shape (samples, 2, dim)
"""
assert ndim(x) == 2
x = tf.expand_dims(x, 1)
pattern = tf.pack([1, n, 1] )
return tf.tile(x, pattern)
def tile(x, n):
if not hasattr(n, "shape") and not hasattr(n, "__len__") and not hasattr(n, "_shape"):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: keras-team/keras
Commit Name: 08014eea360fd8d66b7baab19cdb9335f52c167b
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: repeat
Project Name: GPflow/GPflow
Commit Name: bd1e9c04b48dd5ccca9619d5eaa2595a358bdb08
Time: 2020-01-31
Author: st--@users.noreply.github.com
File Name: gpflow/kernels/misc.py
Class Name: Coregion
Method Name: K_diag
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__