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

Method is_closed

tensorflow/python/ops/data_flow_ops.py:579–596  ·  view source on GitHub ↗

Returns true if queue is closed. This operation returns true if the queue is closed and false if the queue is open. Args: name: A name for the operation (optional). Returns: True if the queue is closed and false if the queue is open.

(self, name=None)

Source from the content-addressed store, hash-verified

577 name=name)
578
579 def is_closed(self, name=None):
580 """Returns true if queue is closed.
581
582 This operation returns true if the queue is closed and false if the queue
583 is open.
584
585 Args:
586 name: A name for the operation (optional).
587
588 Returns:
589 True if the queue is closed and false if the queue is open.
590 """
591 if name is None:
592 name = "%s_Is_Closed" % self._name
593 if self._queue_ref.dtype == _dtypes.resource:
594 return gen_data_flow_ops.queue_is_closed_v2(self._queue_ref, name=name)
595 else:
596 return gen_data_flow_ops.queue_is_closed_(self._queue_ref, name=name)
597
598 def size(self, name=None):
599 """Compute the number of elements in this queue.

Callers 2

ComputeAsyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected