(self, *args, **kwargs)
| 1279 | """Holds a map from replica to variables whose values are reduced on save.""" |
| 1280 | |
| 1281 | def assign_sub(self, *args, **kwargs): |
| 1282 | if _enclosing_tpu_context() is None: |
| 1283 | return SyncOnReadVariable.assign_sub(self, *args, **kwargs) |
| 1284 | else: |
| 1285 | return _make_raw_assign_fn( |
| 1286 | gen_resource_variable_ops.assign_sub_variable_op)( |
| 1287 | self, *args, **kwargs) |
| 1288 | |
| 1289 | def assign_add(self, *args, **kwargs): |
| 1290 | if _enclosing_tpu_context() is None: |
nothing calls this directly
no test coverage detected