Gets size of the work queue. Returns: Size of the work queue.
(self)
| 438 | return dataset |
| 439 | |
| 440 | def add_summary(self): |
| 441 | """Gets size of the work queue. |
| 442 | |
| 443 | Returns: |
| 444 | Size of the work queue. |
| 445 | """ |
| 446 | with ops.name_scope(self.name): |
| 447 | with ops.device(self._remote_device): |
| 448 | size = gen_work_queue_ops.work_queue_size(self._handle) |
| 449 | summary.scalar( |
| 450 | "{}/fraction_of_{}_full".format(self.name, self._capacity), |
| 451 | math_ops.to_float(size) * (1. / self._capacity)) |
| 452 | |
| 453 | |
| 454 | class LocalWorkMgr(object): |