pymoose.transpose#

pymoose.transpose(x, placement=None)[source]#

Compute the transpose of a tensor.

This is equivalent to numpy.ndarray.T.

Parameters
  • x – A tensor.

  • placement – An optional Placement to pin this operation to.

Returns

The input tensor with dimensions in reverse order.