T
- data type for tensor()
output@Operator public final class TensorListConcat<T> extends PrimitiveOp
Requires that all tensors have the same shape except the first dimension.
input_handle: The input list. tensor: The concated result. lengths: Output tensor containing sizes of the 0th dimension of tensors in the list, used for computing the gradient.
Modifier and Type | Class and Description |
---|---|
static class |
TensorListConcat.Options
Optional attributes for
TensorListConcat |
operation
Modifier and Type | Method and Description |
---|---|
static <T> TensorListConcat<T> |
create(Scope scope,
Operand<?> inputHandle,
Class<T> elementDtype,
TensorListConcat.Options... options)
Factory method to create a class wrapping a new TensorListConcat operation.
|
static TensorListConcat.Options |
elementShape(Shape elementShape) |
Output<Long> |
lengths() |
Output<T> |
tensor() |
equals, hashCode, op, toString
public static <T> TensorListConcat<T> create(Scope scope, Operand<?> inputHandle, Class<T> elementDtype, TensorListConcat.Options... options)
scope
- current scopeinputHandle
- elementDtype
- options
- carries optional attributes valuespublic static TensorListConcat.Options elementShape(Shape elementShape)
elementShape
- Copyright © 2022. All rights reserved.