aca137c1ce28ade53acfd834344de5ad66131d53,official/nlp/optimization.py,AdamWeightDecay,_resource_apply_dense,#AdamWeightDecay#,196

Before Change


    // backward pass.
    // TODO(b/171088214): Remove it after the control dependency in
    // nested function is fixed.
    with tf.control_dependencies([grad]):
      lr_t, kwargs = self._get_lr(var.device, var.dtype.base_dtype, apply_state)
      decay = self._decay_weights_op(var, lr_t, apply_state)
    with tf.control_dependencies([decay]):

After Change


    // backward pass.
    // TODO(b/171088214): Remove it after the control dependency in
    // nested function is fixed.
    with tf.control_dependencies([tf.identity(grad)]):
      lr_t, kwargs = self._get_lr(var.device, var.dtype.base_dtype, apply_state)
      decay = self._decay_weights_op(var, lr_t, apply_state)
    with tf.control_dependencies([decay]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/models
Commit Name: aca137c1ce28ade53acfd834344de5ad66131d53
Time: 2020-10-22
Author: crccw@google.com
File Name: official/nlp/optimization.py
Class Name: AdamWeightDecay
Method Name: _resource_apply_dense


Project Name: utiasSTARS/liegroups
Commit Name: 071fb5fb20683946a33f40d28af466f8e9ffc1bd
Time: 2017-10-17
Author: clement.leopold@gmail.com
File Name: liegroups/numpy/so2.py
Class Name: SO2
Method Name: left_jacobian


Project Name: utiasSTARS/liegroups
Commit Name: 071fb5fb20683946a33f40d28af466f8e9ffc1bd
Time: 2017-10-17
Author: clement.leopold@gmail.com
File Name: liegroups/numpy/so2.py
Class Name: SO2
Method Name: inv_left_jacobian


Project Name: tensorflow/models
Commit Name: aca137c1ce28ade53acfd834344de5ad66131d53
Time: 2020-10-22
Author: crccw@google.com
File Name: official/nlp/optimization.py
Class Name: AdamWeightDecay
Method Name: _resource_apply_sparse