U - data type for y() output@Operator public final class Cast<U> extends PrimitiveOp implements Operand<U>
| Modifier and Type | Class and Description |
|---|---|
static class |
Cast.Options
Optional attributes for
Cast |
operation| Modifier and Type | Method and Description |
|---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <U,T> Cast<U> |
create(Scope scope,
Operand<T> x,
Class<U> DstT,
Cast.Options... options)
Factory method to create a class to wrap a new Cast operation to the graph.
|
static Cast.Options |
Truncate(Boolean Truncate) |
Output<U> |
y() |
equals, hashCode, toStringpublic static <U,T> Cast<U> create(Scope scope, Operand<T> x, Class<U> DstT, Cast.Options... options)
scope - current graph scopex - DstT - options - carries optional attributes valuespublic static Cast.Options Truncate(Boolean Truncate)
Truncate - public Output<U> 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<U>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.