def read_outside
bendtorch-core@0.1.0.0 · src/tensor/read_contract.bend:228
import bendtorch-core@0.1.0.0/src/tensor/read_contract.bend as ReadContract
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/storage/main.bend as Storage
import bendtorch-core@0.1.0.0/src/storage/LAWS.bend as StorageLaws
import bendtorch-core@0.1.0.0/src/tensor/read_write_records.bend as Laws
228def read_outside(+shape: Shape.Shape, +fill: F32, +index: U32,
229 outside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(shape))) == False{} : Bool}) -> Laws.ReadContract<shape, fill, index, 8>:
230 read_contract(shape, fill, index, Fail{Storage.OutOfBounds{}},
231 StorageLaws.get_outside(StorageLaws.created(Shape.count(shape), fill), index, size_outside(shape, fill, index, outside)))