Python wrappers
Public Python APIs implemented by this engine symbol.Permute all axes of a according to perm.
See Also
transpose_op : Full-reversal permutation. swapaxes_op : Swap two specific axes. PermuteBackward : Autograd node implementing the gradient rule.
Parameters
aTensorImplPtrInput tensor.
permstd::vector<int>Permutation of
0..ndim-1. Negative indices count from the end.Returns
TensorImplPtrOutput tensor sharing storage with a but with permuted shape and stride (a view; no data copy).
Raises
ValueErrorIf
perm is not a valid permutation of 0..ndim-1.IndexErrorIf any element of
perm is outside [-ndim, ndim).