T - data type for y() output@Operator public final class Transpose<T> extends PrimitiveOp implements Operand<T>
The output `y` has the same rank as `x`. The shapes of `x` and `y` satisfy: `y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]`
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T,U extends Number> |
create(Scope scope,
Operand<T> x,
Operand<U> perm)
Factory method to create a class to wrap a new Transpose operation to the graph.
|
Output<T> |
y() |
equals, hashCode, toStringpublic static <T,U extends Number> Transpose<T> create(Scope scope, Operand<T> x, Operand<U> perm)
scope - current graph scopex - perm - public Output<T> 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<T>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.