SumDims.reduces: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend as SumDims Lines 29-35 of bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend&start_line=29&end_line=35 import Base import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout # Whether the sum reduces axis `axis`: every axis for an empty list. def reduces(+axes: List<&2, U32>, +axis: U32) -> Bool: match axes: case Nil{}: True{} case +head <> +tail: Layout.contains(axis, head <> tail) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/layout.bend&name=contains