public static class PaddingFifoQueue.Options extends Object
PaddingFifoQueue
Modifier and Type | Method and Description |
---|---|
PaddingFifoQueue.Options |
capacity(Long capacity) |
PaddingFifoQueue.Options |
container(String container) |
PaddingFifoQueue.Options |
shapes(List<Shape> shapes) |
PaddingFifoQueue.Options |
sharedName(String sharedName) |
public PaddingFifoQueue.Options shapes(List<Shape> shapes)
shapes
- 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.public PaddingFifoQueue.Options capacity(Long capacity)
capacity
- The upper bound on the number of elements in this queue.
Negative numbers mean no limit.public PaddingFifoQueue.Options container(String container)
container
- If non-empty, this queue is placed in the given container.
Otherwise, a default container is used.public PaddingFifoQueue.Options sharedName(String sharedName)
sharedName
- If non-empty, this queue will be shared under the given name
across multiple sessions.Copyright © 2022. All rights reserved.