0Pricing
Deep Learning Academy · Lesson

Elementwise Ops & Reductions

Sum, mean, max across chosen axes.

Two Kinds of Operations

Tensor math splits into two families: elementwise ops that keep the shape, and reductions that collapse it down to fewer numbers.

Elementwise Keeps the Shape

An elementwise op applies the same action to every entry independently. Input shape in, same shape out, no mixing between positions.

b = a * 2 + 1
# same shape as a, every element transformed

All lessons in this course

  1. Why Loops Are Slow for Math
  2. Elementwise Ops & Reductions
  3. Matrix Multiply with matmul and @
  4. Dot Products Power Every Layer
← Back to Deep Learning Academy