19f17e68bd591d4aa13a535ef857b2ae56d1a10a,kfac/python/ops/utils.py,AccumulatorVariable,value,#AccumulatorVariable#,807

Before Change


  @property
  def value(self):
    Returns the value of accumulator variable which is reset.
    return tf.identity(self._acc_var)

  @property
  def accumulated_value(self):
    Returns the accumulated value.

After Change


  @property
  def value(self):
    Returns the average of the accumulated values since the last reset.
    return self._acc_var / tf.cast(self._counter, self._acc_var.dtype)

  def read_value_and_reset(self):
    Same as `value` property but resets after the data is read.
    value = self.value
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/kfac
Commit Name: 19f17e68bd591d4aa13a535ef857b2ae56d1a10a
Time: 2019-08-13
Author: no-reply@google.com
File Name: kfac/python/ops/utils.py
Class Name: AccumulatorVariable
Method Name: value


Project Name: tensorflow/transform
Commit Name: f73cdc286a3e125cf7019336621cb10370ebfd52
Time: 2019-04-25
Author: askerryryan@google.com
File Name: tensorflow_transform/tf_utils.py
Class Name:
Method Name: _reduce_vocabulary_inputs


Project Name: dpressel/mead-baseline
Commit Name: f2ec403a51aeca55ff64d10234cfabfea77f6d77
Time: 2020-06-12
Author: dpressel@gmail.com
File Name: layers/eight_mile/tf/optz.py
Class Name: CompositeLRSchedulerTensorFlow2
Method Name: __call__