a0ce9c776719da042d58022a31db5e99755588ad,kfac/python/ops/kfac_utils/periodic_inv_cov_update_kfac_opt.py,PeriodicInvCovUpdateKfacOpt,kfac_update_ops,#PeriodicInvCovUpdateKfacOpt#,93

Before Change


    Returns:
      An op that when run will run the update ops at their update frequencies.
    
    with tf.variable_scope(self.get_name()):
      (cov_update_thunks,
       inv_update_thunks) = self.make_vars_and_create_op_thunks()
      counter = self.counter
      prev_counter = tf.assign(
          tf.get_variable(
              "prev_counter", dtype=tf.int64, shape=(), trainable=False,
              initializer=tf.zeros_initializer, use_resource=True),

After Change


      (cov_update_thunks,
       inv_update_thunks) = self.make_vars_and_create_op_thunks()
    else:
      (_, cov_update_thunks,
       _, inv_update_thunks) = self.create_ops_and_vars_thunks()

    should_do_cov_updates = tf.equal(tf.mod(self.counter,
                                            self._cov_update_every), 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/kfac
Commit Name: a0ce9c776719da042d58022a31db5e99755588ad
Time: 2019-02-01
Author: jamesmartens@google.com
File Name: kfac/python/ops/kfac_utils/periodic_inv_cov_update_kfac_opt.py
Class Name: PeriodicInvCovUpdateKfacOpt
Method Name: kfac_update_ops


Project Name: andresriancho/w3af
Commit Name: 4a878f17f0c18bf1dce3553b47f90f5c2c8e91d2
Time: 2018-07-19
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/password_profiling.py
Class Name: password_profiling
Method Name: end


Project Name: mathics/Mathics
Commit Name: 45212332826f081d5a467400eee8c80833a9a762
Time: 2016-08-22
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/lists.py
Class Name: FindClusters
Method Name: _cluster