4aef40d869462e0aae0920354df6b08a177a54df,gpflow/base.py,Parameter,log_prior,#Parameter#,66
Before Change
out = tf.convert_to_tensor(0., dtype=dtype)
bijector = self.transform
if self.prior is not None:
out += tf.reduce_sum(self.prior.log_prob(x))
if self.transform is not None:
log_det_jacobian = bijector.forward_log_det_jacobian(y, y.shape.ndims)
out += tf.reduce_sum(log_det_jacobian)
return out
After Change
x = self.read_value()
y = self._unconstrained
if self.prior is not None:
out = tf.reduce_sum(self.prior.log_prob(x))
if self.transform is not None:
log_det_jacobian = self.transform.forward_log_det_jacobian(y, y.shape.ndims)
out += tf.reduce_sum(log_det_jacobian)
return out
else:
return tf.convert_to_tensor(0., dtype=self.dtype)
@property
def handle(self):
return self._unconstrained.handle
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: GPflow/GPflow
Commit Name: 4aef40d869462e0aae0920354df6b08a177a54df
Time: 2019-10-14
Author: st--@users.noreply.github.com
File Name: gpflow/base.py
Class Name: Parameter
Method Name: log_prior
Project Name: tensorlayer/tensorlayer
Commit Name: 87aeace11d364ece7c8fae8ddab02786e5a2492e
Time: 2019-01-23
Author: zhangjqsmiling@gmail.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: __call__
Project Name: keras-team/keras
Commit Name: 7d818d66a243aaf5d4e0f58e257087b0957a1086
Time: 2021-01-13
Author: scottzhu@google.com
File Name: keras/layers/preprocessing/table_utils.py
Class Name: TableHandler
Method Name: lookup