aa5f9ddfdf0447c7a53f4e2676a1c866189315cd,kfac/python/ops/curvature_matrix_vector_products.py,CurvatureMatrixVectorProductComputer,_total_loss,#CurvatureMatrixVectorProductComputer#,74
Before Change
@property
def _total_loss(self):
return tf.add_n(tuple(loss.evaluate() for loss in self._losses))
// Jacobian multiplication functions:
def _multiply_jacobian(self, vecs):
Multiply vecs by the Jacobian of losses.
After Change
@property
def _total_loss(self):
vals = []
for loss in self._losses:
with tf.colocate_with(self._loss_colocation_ops[loss]):
vals.append(loss.evaluate())
return tf.add_n(tuple(vals))
// Jacobian multiplication functions:
def _multiply_jacobian(self, vecs):
Multiply vecs by the Jacobian of losses.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 11
Instances
Project Name: tensorflow/kfac
Commit Name: aa5f9ddfdf0447c7a53f4e2676a1c866189315cd
Time: 2019-02-01
Author: jamesmartens@google.com
File Name: kfac/python/ops/curvature_matrix_vector_products.py
Class Name: CurvatureMatrixVectorProductComputer
Method Name: _total_loss
Project Name: brian-team/brian2
Commit Name: 81b6fc8918d2fea63660003b7b921cd8c6374f83
Time: 2014-07-03
Author: dan.goodman@ens.fr
File Name: brian2/codegen/runtime/cython_rt/modified_inline.py
Class Name:
Method Name: modified_cython_inline
Project Name: apache/incubator-tvm
Commit Name: 6a4c51e187b2cea0ec14996580c89bb2f7176be0
Time: 2020-12-30
Author: comaniac0422@gmail.com
File Name: python/tvm/auto_scheduler/utils.py
Class Name:
Method Name: get_const_tuple
Project Name: CellProfiler/CellProfiler
Commit Name: f2482a521e006edc0ac32e94612a92c156c896a7
Time: 2015-02-19
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/exporttocellh5.py
Class Name: ExportToCellH5
Method Name: get_site_path