law signed_permute_wraps

bendtorch-core@0.1.0.0 · src/tensor/signed_LAWS.bend:93

import bendtorch-core@0.1.0.0/src/tensor/signed_LAWS.bend as SignedLAWS
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
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed

93# Each signed operation is the unsigned one on the wrapped arguments.
94law signed_permute_wraps:
95  for +input: Shape.Shape
96  for source: Core.Tensor<input>
97  for +axes: List<&2, Signed.Position>
98  {Signed.permute_copy(input, source, axes) == Transforms.permute_copy(input, source, Signed.wrap_all(Shape.rank(input), axes)) :
99    Core.Tensor<input> & Result<&2, &1, Transforms.Error, Core.Dynamic>}

Uses (12)

Used by (0)

No other definition uses this definition.