| Modifier and Type | Class and Description |
|---|---|
static class |
RandomShuffleQueue.Options
Optional attributes for
RandomShuffleQueue |
operation| Modifier and Type | Method and Description |
|---|---|
Output<Object> |
asOutput()
Returns the symbolic handle of a tensor.
|
static RandomShuffleQueue.Options |
capacity(Long capacity) |
static RandomShuffleQueue.Options |
container(String container) |
static RandomShuffleQueue |
create(Scope scope,
List<Class<?>> componentTypes,
RandomShuffleQueue.Options... options)
Factory method to create a class wrapping a new RandomShuffleQueue operation.
|
Output<?> |
handle()
The handle to the queue.
|
static RandomShuffleQueue.Options |
minAfterDequeue(Long minAfterDequeue) |
static RandomShuffleQueue.Options |
seed(Long seed) |
static RandomShuffleQueue.Options |
seed2(Long seed2) |
static RandomShuffleQueue.Options |
shapes(List<Shape> shapes) |
static RandomShuffleQueue.Options |
sharedName(String sharedName) |
equals, hashCode, op, toStringpublic static RandomShuffleQueue create(Scope scope, List<Class<?>> componentTypes, RandomShuffleQueue.Options... options)
scope - current scopecomponentTypes - The type of each component in a value.options - carries optional attributes valuespublic static RandomShuffleQueue.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. If the length of
this attr is 0, the shapes of queue elements are not constrained, and
only one element may be dequeued at a time.public static RandomShuffleQueue.Options capacity(Long capacity)
capacity - The upper bound on the number of elements in this queue.
Negative numbers mean no limit.public static RandomShuffleQueue.Options minAfterDequeue(Long minAfterDequeue)
minAfterDequeue - Dequeue will block unless there would be this
many elements after the dequeue or the queue is closed. This
ensures a minimum level of mixing of elements.public static RandomShuffleQueue.Options seed(Long seed)
seed - If either seed or seed2 is set to be non-zero, the random number
generator is seeded by the given seed. Otherwise, a random seed is used.public static RandomShuffleQueue.Options seed2(Long seed2)
seed2 - A second seed to avoid seed collision.public static RandomShuffleQueue.Options container(String container)
container - If non-empty, this queue is placed in the given container.
Otherwise, a default container is used.public static RandomShuffleQueue.Options sharedName(String sharedName)
sharedName - If non-empty, this queue will be shared under the given name
across multiple sessions.public Output<?> handle()
public Output<Object> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<Object>OperationBuilder.addInput(Output)Copyright © 2022. All rights reserved.