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 or None. This list is the same length as dtypes. If the shape of any tensors in the element are constrained, all must be; shapes can be None if the shapes should not be constrained.
  • names: Optional list of names. If provided, the enqueue() and dequeue() methods will use dictionaries with these names as keys. Must be None or a list or tuple of the same length as dtypes.
  • queue_ref: The queue reference, i.e. the output of the queue op.
Raises:
  • ValueError: If one of the arguments is invalid.
doc_TensorFlow
2016-10-14 13:08:48
Comments
Leave a Comment

Please login to continue.