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

Method _finish

tensorflow/python/training/optimizer.py:1252–1267  ·  view source on GitHub ↗

Do what is needed to finish the update. This is called with the `name_scope` using the "name" that users have chosen for the application of gradients. Args: update_ops: List of `Operation` objects to update variables. This list contains the values returned by the `_apply

(self, update_ops, name_scope)

Source from the content-addressed store, hash-verified

1250 raise NotImplementedError()
1251
1252 def _finish(self, update_ops, name_scope):
1253 """Do what is needed to finish the update.
1254
1255 This is called with the `name_scope` using the "name" that
1256 users have chosen for the application of gradients.
1257
1258 Args:
1259 update_ops: List of `Operation` objects to update variables. This list
1260 contains the values returned by the `_apply_dense()` and
1261 `_apply_sparse()` calls.
1262 name_scope: String. Name to use for the returned operation.
1263
1264 Returns:
1265 The operation to apply updates.
1266 """
1267 return control_flow_ops.group(*update_ops, name=name_scope)
1268
1269 # --------------
1270 # Utility methods for subclasses.

Callers 2

apply_fnMethod · 0.95
finishMethod · 0.95

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected