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)
| 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. |