What do specialized math units do?
Some GPU units specialize in particular math. NVIDIA's Tensor Cores accelerate supported matrix multiply-and-accumulate operations.
One result from a row and a column
- Select the values
Row [2, 3] and column [4, 5]
- Multiply pairs
2 × 4 = 8 and 3 × 5 = 15
- Add the products
8 + 15 = 23
What is a matrix
A matrix is a rectangle of numbers. Multiplication combines rows from one matrix with columns from another.
For example, combining [2, 3] with [4, 5] gives:
2 × 4 + 3 × 5 = 23
Neural networks do lots of related arithmetic, which makes specialized hardware useful.
Software must use it
Tensor Cores do not speed up every instruction. The operation, number format, and software path must be supported. Reading files or waiting for a network does not become faster just because these units exist.
A headline throughput number also needs context: which precision, dense or sparse data, and measured performance or theoretical peak?
Try it yourself
Multiply A = [1 2; 3 4] by B = [5 6; 7 8]. Start with the top-left result.
Check your answer
The top-left result is 1 × 5 + 2 × 7 = 19. The full result is [19 22; 43 50]. This is row-by-column multiplication, not multiplying matching positions.