Learn Before
Concept
Cumulative Tensor Summation
To calculate the running total of a tensor's elements along a specific axis, one can perform a cumulative summation. Unlike standard reduction operations that collapse elements into a single value and remove the target axis, a cumulative sum computes a sequence of partial sums along the dimension. By design, this mathematical operation does not reduce the input tensor along any axis, producing an output tensor that shares the exact same shape as the input.
0
1
Updated 2026-05-02
Tags
D2L
Dive into Deep Learning @ D2L