MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _finish

Method _finish

tensorflow/python/training/adam.py:301–311  ·  view source on GitHub ↗
(self, update_ops, name_scope)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

colocate_withMethod · 0.80
control_dependenciesMethod · 0.45
assignMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected