def permute_copy

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

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

244# PyTorch's permute_copy with signed axes, wrapped among the input's rank.
245def permute_copy(+input: Shape.Shape, source: Core.Tensor<input>, axes: List<&2, Position>) ->
246  Core.Tensor<input> & Result<&2, &1, Transforms.Error, Core.Dynamic>:
247  Transforms.permute_copy(input, source, wrap_all(Shape.rank(input), axes))

Uses (11)

Used by (2)