a1d15164eceb07b8c98e95df75e540467524a384,gpflow/likelihoods.py,SwitchedLikelihood,_partition_and_stitch,#SwitchedLikelihood#Any#Any#,477
Before Change
Y = args[-1]
ind = tf.gather(tf.transpose(Y), tf.shape(Y)[1]-1) // ind = Y[:,-1]
ind = tf.cast(ind, tf.int32)
Y = tf.transpose(tf.gather(tf.transpose(Y), tf.range(0, tf.shape(Y)[1]-1))) // Y = Y[:,:-1]
args[-1] = Y
// split up the arguments into chunks corresponding to the relevant likelihoods
After Change
Y = args[-1]
ind = Y[:, -1]
ind = tf.cast(ind, tf.int32)
Y = Y[:, :-1]
args[-1] = Y
// split up the arguments into chunks corresponding to the relevant likelihoods
args = zip(*[tf.dynamic_partition(X, ind, self.num_likelihoods) for X in args])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: GPflow/GPflow
Commit Name: a1d15164eceb07b8c98e95df75e540467524a384
Time: 2018-01-04
Author: james@prowler.io
File Name: gpflow/likelihoods.py
Class Name: SwitchedLikelihood
Method Name: _partition_and_stitch
Project Name: GPflow/GPflow
Commit Name: a75f24ad02e8f5fb80589983267963fd907a4cc0
Time: 2018-01-08
Author: james.hensman@gmail.com
File Name: gpflow/likelihoods.py
Class Name: SwitchedLikelihood
Method Name: _partition_and_stitch
Project Name: tensorflow/models
Commit Name: 6291404af8c48b0f9f7993abf5e895ce2de07f29
Time: 2020-06-28
Author: syiming@umich.edu
File Name: research/object_detection/utils/spatial_transform_ops.py
Class Name:
Method Name: multilevel_native_crop_and_resize