Learn Before
Concept

Tensor Reduction along an Axis

Instead of reducing an entire tensor to a single scalar, mathematical reduction operations like summation can be targeted along specific axes. For instance, summing an m×nm \times n matrix along its rows (axis 00) eliminates the row dimension, yielding an output vector. Similarly, summing along the column dimension (axis 11) produces a vector by adding elements across columns. Reducing a tensor along all of its axes simultaneously is mathematically equivalent to computing the total sum of all its elements.

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L