T
- data type for value()
output@Operator public final class TensorArrayGather<T> extends PrimitiveOp implements Operand<T>
All elements selected by `indices` must have the same shape.
Modifier and Type | Class and Description |
---|---|
static class |
TensorArrayGather.Options
Optional attributes for
TensorArrayGather |
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> TensorArrayGather<T> |
create(Scope scope,
Operand<?> handle,
Operand<Integer> indices,
Operand<Float> flowIn,
Class<T> dtype,
TensorArrayGather.Options... options)
Factory method to create a class wrapping a new TensorArrayGather operation.
|
static TensorArrayGather.Options |
elementShape(Shape elementShape) |
Output<T> |
value()
All of the elements in the TensorArray, concatenated along a new
axis (the new dimension 0).
|
equals, hashCode, op, toString
public static <T> TensorArrayGather<T> create(Scope scope, Operand<?> handle, Operand<Integer> indices, Operand<Float> flowIn, Class<T> dtype, TensorArrayGather.Options... options)
scope
- current scopehandle
- The handle to a TensorArray.indices
- The locations in the TensorArray from which to read tensor elements.flowIn
- A float scalar that enforces proper chaining of operations.dtype
- The type of the elem that is returned.options
- carries optional attributes valuespublic static TensorArrayGather.Options elementShape(Shape elementShape)
elementShape
- The expected shape of an element, if known. Used to
validate the shapes of TensorArray elements. If this shape is not
fully specified, gathering zero-size TensorArrays is an error.public Output<T> value()
public Output<T> asOutput()
Operand
Inputs 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<T>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.