(rontolisp) docs
← Functions

torch:transpose

(torch:transpose a &optional axes)

Differentiable transpose: with no axes the matrix transpose (a vector passes through, like linalg:transpose); with an axes list the rank-n permutation (out-dims[k] = dims[axes[k]], a negative axis counting from the end). The backward pass applies the inverse permutation to the gradient.