f01a7761d70d727ef4ea42c05464c2f85679ecd1,gpflow/kernels/base.py,Kernel,slice_cov,#Kernel#Any#,79
Before Change
N = cov.shape[0]
I = len(act_dims)
cov_reshaped = tf.reshape(cov, (-1, cov.shape[-1], cov.shape[-1]))
return tf.reshape(cov_reshaped[..., act_dims, act_dims], (N, I, I))
@abc.abstractmethod
After Change
cov_reshaped = tf.reshape(cov, [-1, nlast, nlast])
gather1 = tf.gather(tf.transpose(cov_reshaped, [2, 1, 0]), dims)
gather2 = tf.gather(tf.transpose(gather1, [1, 0, 2]), dims)
cov = tf.reshape(tf.transpose(gather2, [2, 0, 1]),
tf.concat([cov_shape[:-2], [ndims, ndims]], 0))
// nbatch = cov.shape[0]
// cov_reshaped = tf.reshape(cov, (-1, nlast, nlast))
// return tf.reshape(cov_reshaped[..., dims, dims], (nbatch, ndims, ndims))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: GPflow/GPflow
Commit Name: f01a7761d70d727ef4ea42c05464c2f85679ecd1
Time: 2018-12-27
Author: art.art.v@gmail.com
File Name: gpflow/kernels/base.py
Class Name: Kernel
Method Name: slice_cov
Project Name: GPflow/GPflow
Commit Name: f3c511060ce62072a34a50319237d28b82d10448
Time: 2020-08-27
Author: dutordoirv@gmail.com
File Name: gpflow/mean_functions.py
Class Name: Zero
Method Name: __call__
Project Name: uber/ludwig
Commit Name: 99754e7c704346c025a21ee61efeda2f7c02a3b3
Time: 2020-05-09
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/sequence_decoders.py
Class Name: SequenceGeneratorDecoder
Method Name: decoder_training
Project Name: GPflow/GPflow
Commit Name: 5a945d67b37120610880c3323224a4e86404ae1d
Time: 2020-08-27
Author: dutordoirv@gmail.com
File Name: gpflow/mean_functions.py
Class Name: Zero
Method Name: __call__