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

Method _mutation_lock

tensorflow/python/framework/ops.py:5155–5160  ·  view source on GitHub ↗

Returns a lock to guard code that creates & mutates ops. See the comment for self._group_lock for more info.

(self)

Source from the content-addressed store, hash-verified

5153 self._auto_cast_variable_read_dtype = prev_read_dtype
5154
5155 def _mutation_lock(self):
5156 """Returns a lock to guard code that creates & mutates ops.
5157
5158 See the comment for self._group_lock for more info.
5159 """
5160 return self._group_lock.group(_MUTATION_LOCK_GROUP)
5161
5162 def _session_run_lock(self):
5163 """Returns a lock to guard code for Session.run.

Callers 6

_create_op_internalMethod · 0.95
BuildLoopMethod · 0.80
gradientsFunction · 0.80
gradients_v2Function · 0.80
lift_to_graphFunction · 0.80

Calls 1

groupMethod · 0.45

Tested by

no test coverage detected