Function marian::swapAxes¶
Defined in File expression_operators.cpp
Function Documentation¶
-
Expr
marian
::
swapAxes
(Expr x, int axis1, int axis2)¶ Swap two axes of an expression.
Swaps two axes of an expression via reshaping, if possible, or transpose.
- Return
Expression with the axes
axis1
andaxis2
interchanged- See
reshape() and transpose()
- Parameters
x
: Expression to manipulateaxis1
: Axis to be swappedaxis2
: Axis to swap with