def target_inside
bendtorch-core@0.1.0.0 · src/tensor/reshape_contract.bend:178
import bendtorch-core@0.1.0.0/src/tensor/reshape_contract.bend as ReshapeContract
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
178def target_inside(+input: Shape.Shape, +target: Shape.Shape, +index: U32, same: {Shape.logical_numel(Shape.dimensions(input)) == Shape.logical_numel(Shape.dimensions(target)) : Nat},
179 inside: {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(input))) == True{} : Bool}) -> {Nat.is_lt(U32.to_nat(index), Shape.logical_numel(Shape.dimensions(target))) == True{} : Bool}:
180 %same : {Nat.is_lt(U32.to_nat(index), _) == True{} : Bool}
181 inside