def sum_dynamic
import bendtorch-core@0.1.0.0/src/tensor/reduction.bend as Reductionimport Base
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
176def sum_dynamic(dynamic: Core.Dynamic) -> Result<&2, &1, Core.Error, Core.Dynamic & Core.Dynamic>:
177 Core.Packed{+shape, tensor} = dynamic
178 pack_result(shape, sum(shape, tensor))
Uses (6)
Used by (6)
- bendtorch-core@0.1.0.0/src/autograd/loss:ce_picked
- bendtorch-core@0.1.0.0/src/autograd/loss:mean_shaped
- bendtorch-core@0.1.0.0/src/autograd/tensor_backward:sum_shaped
- bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS:successful_dynamic_sum_interpretation
- bendtorch-core@0.1.0.0/src/tensor/reduction_LAWS:sum_dynamic_valid_success
- …