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

Method assign_sub

tensorflow/python/distribute/values.py:1281–1287  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 3

_make_raw_assign_fnFunction · 0.85
_enclosing_tpu_contextFunction · 0.70
assign_subMethod · 0.45

Tested by

no test coverage detected