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, theenqueue()anddequeue()methods will use dictionaries with these names as keys. Must be None or a list or tuple of the same length asdtypes. -
queue_ref: The queue reference, i.e. the output of the queue op.
Raises:
-
ValueError: If one of the arguments is invalid.
Please login to continue.