def swapped

bendtorch-core@0.1.0.0 · src/autograd/tensor_vjp_LAWS.bend:221

import bendtorch-core@0.1.0.0/src/autograd/tensor_vjp_LAWS.bend as TensorVjpLAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/transpose_spec.bend as Transpose

221# The axes transpose_dynamic(t, 0, 1) permutes t by, and the shape of the
222# copy the plan gives.
223def swapped(+shape: Shape.Shape) -> List<&2, U32>:
224  Transpose.swapped_axes(shape, 0, 1)

Uses (4)

Used by (13)