T
- data type for y()
output@Operator(group="linalg") 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 wrapping a new Transpose operation.
|
Output<T> |
y() |
equals, hashCode, op, toString
public static <T,U extends Number> Transpose<T> create(Scope scope, Operand<T> x, Operand<U> perm)
scope
- current scopex
- perm
- 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.