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

Method increment_and_get

tensorflow/python/eager/context.py:299–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self._lock = threading.Lock()
298
299 def increment_and_get(self):
300 with self._lock:
301 self._value += 1
302 return self._value
303
304
305_context_id_counter = _AtomicCounter()

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected