Function marian::transpose(Expr, const std::vector<int>&)

Function Documentation

Expr marian::transpose(Expr a, const std::vector<int> &axes)

Returns the transpose of an expression.

Permutes the axes of an expression to resemble axes. Axis i of the returned expression corresponds to axes[i] of the input a.

See

TransposeNodeOp

Parameters
  • a: Expression to manipulate

  • axes: Desired permutation of axes