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

Method take

tensorflow/python/ops/work_queue.py:540–545  ·  view source on GitHub ↗

Take work from the local workqueue.

(self)

Source from the content-addressed store, hash-verified

538 collections=[ops.GraphKeys.LOCAL_VARIABLES])
539
540 def take(self):
541 """Take work from the local workqueue."""
542 with ops.name_scope(self._name):
543 with ops.device(self._local_device):
544 with ops.device('/cpu:0'):
545 return self._restore_work_queue.dequeue()
546
547 def hook(self):
548 """Get a Hook that controls the restore of the works."""

Callers

nothing calls this directly

Calls 3

name_scopeMethod · 0.45
deviceMethod · 0.45
dequeueMethod · 0.45

Tested by

no test coverage detected