def transpose_copy

bendtorch-core@0.1.0.0 · src/tensor/signed.bend:253

import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms

253# PyTorch's transpose_copy with signed axes, wrapped among axis_limit.
254def transpose_copy(+input: Shape.Shape, source: Core.Tensor<input>, a: Position, b: Position) ->
255  Core.Tensor<input> & Result<&2, &1, Transforms.Error, Core.Dynamic>:
256  Transforms.transpose_copy(input, source, wrap(axis_limit(input), a), wrap(axis_limit(input), b))

Uses (10)

Used by (2)