law slice_refused
import bendtorch-core@0.1.0.0/src/tensor/slice_LAWS.bend as SliceLAWSimport Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import bendtorch-core@0.1.0.0/src/tensor/elementwise_totality.bend as Totality
import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice
225# A refused plan fails the slice with its error and hands the input back.
226law slice_refused:
227 for input: Core.Dynamic
228 for +dim: U32
229 for +start: U32
230 for +stop: U32
231 for +step: U32
232 for error: Slice.Error
233 for refused: {Slice.plan(Totality.dynamic_shape(input), dim, start, stop, step) == Fail{error} : Result<&2, &2, Slice.Error, Slice.Planned>}
234 {Slice.slice(input, dim, start, stop, step) == (input, Fail{error}) : Core.Dynamic & Result<&2, &1, Slice.Error, Core.Dynamic>}
Uses (12)
Used by (0)
No other definition uses this definition.