tf.QueueBase.shapes

tf.QueueBase.shapes The list of shapes for each component of a queue element.

tf.QueueBase.size()

tf.QueueBase.size(name=None) Compute the number of elements in this queue. Args: name: A name for the operation (optional). Returns: A scalar tensor containing the number of elements in this queue.

tf.QueueBase.__init__()

tf.QueueBase.__init__(dtypes, shapes, names, queue_ref) Constructs a queue object from a queue reference. The two optional lists, shapes and names, must be of the same length as dtypes if provided. The values at a given index i indicate the shape and name to use for the corresponding queue component in dtypes. Args: dtypes: A list of types. The length of dtypes must equal the number of tensors in each element. shapes: Constraints on the shapes of tensors in an element: A list of shape tuples

tf.RandomShuffleQueue

class tf.RandomShuffleQueue A queue implementation that dequeues elements in a random order. See tf.QueueBase for a description of the methods on this class.

tf.QueueBase.queue_ref

tf.QueueBase.queue_ref The underlying queue reference.

tf.QueueBase.names

tf.QueueBase.names The list of names for each component of a queue element.

tf.QueueBase.from_list()

tf.QueueBase.from_list(index, queues) Create a queue using the queue reference from queues[index]. Args: index: An integer scalar tensor that determines the input that gets selected. queues: A list of QueueBase objects. Returns: A QueueBase object. Raises: TypeError: When queues is not a list of QueueBase objects, or when the data types of queues are not all the same.

tf.QueueBase.name

tf.QueueBase.name The name of the underlying queue.

tf.QueueBase.enqueue_many()

tf.QueueBase.enqueue_many(vals, name=None) Enqueues zero or more elements to this queue. This operation slices each component tensor along the 0th dimension to make multiple queue elements. All of the tensors in vals must have the same size in the 0th dimension. If the queue is full when this operation executes, it will block until all of the elements have been enqueued. At runtime, this operation may raise an error if the queue is closed before or during its execution. If the queue is closed

tf.QueueBase.enqueue()

tf.QueueBase.enqueue(vals, name=None) Enqueues one element to this queue. If the queue is full when this operation executes, it will block until the element has been enqueued. At runtime, this operation may raise an error if the queue is closed before or during its execution. If the queue is closed before this operation runs, tf.errors.CancelledError will be raised. If this operation is blocked, and either (i) the queue is closed by a close operation with cancel_pending_enqueues=True, or (ii)