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

Method _next_unique_token

tensorflow/python/ops/script_ops.py:251–256  ·  view source on GitHub ↗

Returns a unique token.

(self)

Source from the content-addressed store, hash-verified

249 return len(self._funcs)
250
251 def _next_unique_token(self):
252 """Returns a unique token."""
253 with self._lock:
254 uid = self._unique_id
255 self._unique_id += 1
256 return "pyfunc_%d" % uid
257
258
259# Global registry for py functions.

Callers 1

insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected