Class Transpose<T extends TType>

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.linalg.Transpose<T>
All Implemented Interfaces:
Shaped, Op, Operand<T>

@Operator(group="linalg") public final class Transpose<T extends TType> extends RawOp implements Operand<T>
Shuffle dimensions of x according to a permutation. 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]
  • Field Details

  • Constructor Details

    • Transpose

      public Transpose(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static <T extends TType> Transpose<T> create(Scope scope, Operand<T> x, Operand<? extends TNumber> perm)
      Factory method to create a class wrapping a new Transpose operation.
      Type Parameters:
      T - data type for Transpose output and operands
      Parameters:
      scope - current scope
      x - The x value
      perm - The perm value
      Returns:
      a new instance of Transpose
    • y

      public Output<T> y()
      Gets y.
      Returns:
      y.
    • asOutput

      public Output<T> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      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.

      Specified by:
      asOutput in interface Operand<T extends TType>
      See Also: