Winograd convolutions

The Winograd algorithm (Fast Algorithms for Convolutional Neural Networks, can provide 2 or 3× speedup compared to the direct convolution. To explain this, we'll use the same notations that we used in the Convolution as matrix multiplication section but with a 3×3 (R=S=3) filter. We'll also assume that the input slices are bigger than 4×4 (H>4, W>4).

Here's how to compute Winograd convolutions:

  1. Divide the input image into 4×4 tiles that overlap with stride 2, as shown in the following diagram:
The input is split into tiles
The tile size can vary, but for the sake of simplicity, we'll ...

Get Advanced Deep Learning with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.