law narrow_axis_refused

bendtorch-core@0.1.0.0 · src/tensor/slice_LAWS.bend:265

import bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend as SliceLAWS
import Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice

265law narrow_axis_refused:
266  for input: Core.Dynamic
267  for +dim: U32
268  for +start: U32
269  for +length: U32
270  for outside: {Nat.is_lt(U32.to_nat(dim), rank_of(input)) == False{} : Bool}
271  {Slice.narrow(input, dim, start, length) == (input, Fail{Slice.LayoutError{Layout.AxisOutOfBounds{}}}) :
272    Core.Dynamic & Result<&2, &1, Slice.Error, Core.Dynamic>}

Uses (17)

Used by (0)

No other definition uses this definition.