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

Method assign_add

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

Source from the content-addressed store, hash-verified

1287 self, *args, **kwargs)
1288
1289 def assign_add(self, *args, **kwargs):
1290 if _enclosing_tpu_context() is None:
1291 return SyncOnReadVariable.assign_add(self, *args, **kwargs)
1292 else:
1293 return _make_raw_assign_fn(
1294 gen_resource_variable_ops.assign_add_variable_op)(
1295 self, *args, **kwargs)
1296
1297 def assign(self, *args, **kwargs):
1298 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_addMethod · 0.45

Tested by

no test coverage detected