8a801031c5a5f34f5d83319aa99a9e0889bb56a1,gpflow/transforms.py,LowerTriangular,backward_tensor,#LowerTriangular#Any#,392
Before Change
N = tf.cast(tf.sqrt(tf.size(y) / self.num_matrices), tf.int32)
reshaped = tf.reshape(y, (N, N, self.num_matrices))
size = len(reshaped)
triangular = reshaped[np.tril_indices(size, 0)].T
return triangular
def log_jacobian_tensor(self, x):
After Change
reshaped = tf.reshape(y, shape=(N, N, self.num_matrices))
print(reshaped, reshaped.shape.as_list())
N_not_tensor = reshaped.shape.as_list[0]
indices = np.dstack(np.tril_indices(N_not_tensor))[0]
triangular = tf.reshape(tf.gather_nd(reshaped, indices), shape=[-1])
return triangular
def log_jacobian_tensor(self, x):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: GPflow/GPflow
Commit Name: 8a801031c5a5f34f5d83319aa99a9e0889bb56a1
Time: 2018-01-02
Author: art.art.v@gmail.com
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward_tensor
Project Name: ilastik/ilastik
Commit Name: ea08da61f3896f02be9b0fdaa1c59612efe273e8
Time: 2013-08-13
Author: Buote.Xu@gmail.com
File Name: ilastik/applets/counting/countingOperators.py
Class Name: OpPredictCounter
Method Name: execute
Project Name: matplotlib/matplotlib
Commit Name: deaf966e31e86abc4b2b95a1697c9dd5de8a425f
Time: 2018-05-08
Author: anntzer.lee@gmail.com
File Name: examples/misc/demo_ribbon_box.py
Class Name: RibbonBox
Method Name: __init__
Project Name: CellProfiler/CellProfiler
Commit Name: aadd7d651389f213aaf33b08ab6f533a3ecc59db
Time: 2011-08-04
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/correctilluminationcalculate.py
Class Name: CorrectIlluminationCalculate
Method Name: apply_scaling
Project Name: ilastik/ilastik
Commit Name: 589442365d133fb993b4ea14b45a9123c6973e46
Time: 2012-09-13
Author: christoph.straehle@iwr.uni-heidelberg.de
File Name: lazyflow/operators/obsolete/classifierOperators.py
Class Name: OpPredictRandomForest
Method Name: execute