def bounds

bendtorch-core@0.1.0.0 · src/tensor/slice.bend:52

import bendtorch-core@0.1.0.0/src/tensor/slice.bend as Slice
import Base

52def bounds(+extent: Nat, +start: Nat, +stop: Nat) -> Bounds:
53  +low = Nat.min(start, extent)
54  Bounds{low, Nat.max(low, Nat.min(stop, extent))}

Uses (4)

Used by (6)