Take work from the local workqueue.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected