(self, update_ops, name_scope)
| 299 | self._resource_scatter_add) |
| 300 | |
| 301 | def _finish(self, update_ops, name_scope): |
| 302 | # Update the power accumulators. |
| 303 | with ops.control_dependencies(update_ops): |
| 304 | beta1_power, beta2_power = self._get_beta_accumulators() |
| 305 | with ops.colocate_with(beta1_power): |
| 306 | update_beta1 = beta1_power.assign( |
| 307 | beta1_power * self._beta1_t, use_locking=self._use_locking) |
| 308 | update_beta2 = beta2_power.assign( |
| 309 | beta2_power * self._beta2_t, use_locking=self._use_locking) |
| 310 | return control_flow_ops.group( |
| 311 | *update_ops + [update_beta1, update_beta2], name=name_scope) |
nothing calls this directly
no test coverage detected