tf.raw_ops.PaddingFIFOQueue
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
A queue that produces elements in first-in first-out order.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.raw_ops.PaddingFIFOQueue
tf.raw_ops.PaddingFIFOQueue(
component_types,
shapes=[],
capacity=-1,
container='',
shared_name='',
name=None
)
Variable-size shapes are allowed by setting the corresponding shape dimensions
to 0 in the shape attr. In this case DequeueMany will pad up to the maximum
size of any given element in the minibatch. See below for details.
Args |
component_types
|
A list of tf.DTypes that has length >= 1 .
The type of each component in a value.
|
shapes
|
An optional list of shapes (each a tf.TensorShape or list of ints ). Defaults to [] .
The shape of each component in a value. The length of this attr must
be either 0 or the same as the length of component_types.
Shapes of fixed rank but variable size are allowed by setting
any shape dimension to -1. In this case, the inputs' shape may vary along
the given dimension, and DequeueMany will pad the given dimension with
zeros up to the maximum shape of all elements in the given batch.
If the length of this attr is 0, different queue elements may have
different ranks and shapes, but only one element may be dequeued at a time.
|
capacity
|
An optional int . Defaults to -1 .
The upper bound on the number of elements in this queue.
Negative numbers mean no limit.
|
container
|
An optional string . Defaults to "" .
If non-empty, this queue is placed in the given container.
Otherwise, a default container is used.
|
shared_name
|
An optional string . Defaults to "" .
If non-empty, this queue will be shared under the given name
across multiple sessions.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type mutable string .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.PaddingFIFOQueue\n\n\u003cbr /\u003e\n\nA queue that produces elements in first-in first-out order.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.PaddingFIFOQueue`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/PaddingFIFOQueue)\n\n\u003cbr /\u003e\n\n tf.raw_ops.PaddingFIFOQueue(\n component_types,\n shapes=[],\n capacity=-1,\n container='',\n shared_name='',\n name=None\n )\n\nVariable-size shapes are allowed by setting the corresponding shape dimensions\nto 0 in the shape attr. In this case DequeueMany will pad up to the maximum\nsize of any given element in the minibatch. See below for details.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `component_types` | A list of `tf.DTypes` that has length `\u003e= 1`. The type of each component in a value. |\n| `shapes` | An optional list of shapes (each a [`tf.TensorShape`](../../tf/TensorShape) or list of `ints`). Defaults to `[]`. The shape of each component in a value. The length of this attr must be either 0 or the same as the length of component_types. Shapes of fixed rank but variable size are allowed by setting any shape dimension to -1. In this case, the inputs' shape may vary along the given dimension, and DequeueMany will pad the given dimension with zeros up to the maximum shape of all elements in the given batch. If the length of this attr is 0, different queue elements may have different ranks and shapes, but only one element may be dequeued at a time. |\n| `capacity` | An optional `int`. Defaults to `-1`. The upper bound on the number of elements in this queue. Negative numbers mean no limit. |\n| `container` | An optional `string`. Defaults to `\"\"`. If non-empty, this queue is placed in the given container. Otherwise, a default container is used. |\n| `shared_name` | An optional `string`. Defaults to `\"\"`. If non-empty, this queue will be shared under the given name across multiple sessions. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type mutable `string`. ||\n\n\u003cbr /\u003e"]]