def sum_dims
import bendtorch-core@0.1.0.0/src/autograd/sum_dims.bend as SumDimsimport Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
149# PyTorch's input.sum(dim=axes, keepdim=keepdim). The input owner always comes
150# back unchanged next to the result.
151def sum_dims(input: Core.Dynamic, +axes: List<&2, U32>, keepdim: Bool) -> Core.Dynamic & Result<&2, &1, Error, Core.Dynamic>:
152 Core.Packed{+shape, tensor} = input
153 sum_checked(Core.Packed{shape, tensor}, keepdim, plan(shape, axes))