Convolutional layer
A convolutional layer is a neural-network layer that applies shared learned filters to local regions of structured input to produce feature representations.
Natural Language Processing in Action, Second Edition
A convolutional layer is a neural-network layer that applies learned filters across local regions of its input to produce feature maps.
- How it is used
- Detects local word-order patterns for CNN-based text classification.
- How deep it goes
- Works from sliding-window arithmetic to PyTorch tensor shapes, learned filters, and convolution-pooling architecture.
- Examples
- Uses part-of-speech pattern matching, Morse-code dot detection, and disaster-post classification.
- What you can do after
- Apply convolutional layers via PyTorch Conv1d to construct and inspect a text-classification pipeline.
Read how Natural Language Processing in Action, Second Edition explains convolutional layer →
Inside Deep Learning: Math, Algorithms, Models
A PyTorch module that performs a two-dimensional convolution over image-like tensor inputs.
- How it is used
- Uses learned spatial filters to extract image features for CNN classification.
- How deep it goes
- Works from sliding-filter calculations through multichannel nn.Conv2d shapes, padding, activations, and classifier integration.
- Examples
- Uses a small 2D filter calculation, a three-channel/two-filter nn.Conv2d example, and a layered CNN implementation.
- What you can do after
- Build it from scratch with nn.Conv2d, padding, activations, pooling, and a flattened classifier.
Read how Inside Deep Learning: Math, Algorithms, Models explains convolutional layer →
Math and Architectures of Deep Learning
A neural-network layer that applies convolution operations to an input, commonly used to extract local features from images.
- How it is used
- Extracts local image, curve, and video patterns as feature maps for neural networks.
- How deep it goes
- Derives sliding weighted sums, padding, matrix form, backpropagation linkage, 1D–3D cases, and PyTorch tensor interfaces.
- Examples
- Uses smoothing and edge-detection kernels, noisy text images, a moving-ball video, and LeNet on MNIST digits.
- What you can do after
- Apply it via PyTorch Conv1d, Conv2d, and Conv3d layers within trainable neural networks.
Read how Math and Architectures of Deep Learning explains convolutional layer →
Deep Learning with PyTorch, Second Edition
A PyTorch 2D convolution layer module that applies learned filters over spatial input regions.
- How it is used
- Replaces fully connected image transformations to exploit local structure and improve generalization in bird-versus-airplane classification.
- How deep it goes
- Works through kernel calculations, parameter shapes, and network composition, while distinguishing PyTorch cross-correlation and deferring continuous convolution.
- Examples
- Uses CIFAR bird images, handcrafted blur and edge filters, and a two-convolution bird-versus-airplane classifier.
- What you can do after
- Apply it via PyTorch nn.Conv2d to construct and inspect image-processing layers and incorporate them into a classifier.
Read how Deep Learning with PyTorch, Second Edition explains convolutional layer →
Deep Learning with Python, Third Edition
A two-dimensional convolution layer used here with a 1×1 kernel to project a residual to a matching shape.
- How it is used
- Uses convolutional layers to extract local image features for classification and to compress feature maps for segmentation.
- How deep it goes
- Explains patch transformations, feature-map shapes, translation invariance, spatial hierarchies, and downsampling through worked ConvNet architectures.
- Examples
- Builds an MNIST digit classifier and a larger dogs-versus-cats classifier from Keras convolution and pooling layers.
- What you can do after
- Apply it via Keras Conv2D to construct image classifiers and inspect their feature-map shapes.
Read how Deep Learning with Python, Third Edition explains convolutional layer →
Deep Learning with R, Third Edition
A convolutional layer is a neural-network layer that applies learned local filters across spatial or sequential input dimensions.
- How it is used
- Uses convolutional layers to extract local image features for classification and per-pixel segmentation.
- How deep it goes
- Explains shared transformations, feature maps, shapes, and architectural choices through worked models.
- Examples
- Demonstrates an MNIST digit classifier and an image segmentation model with per-pixel predictions.
- What you can do after
- Apply it via R Keras to build and train an image classifier or configure a segmentation model.
Read how Deep Learning with R, Third Edition explains convolutional layer →
Grokking AI Algorithms, Second Edition
A convolutional layer is a neural-network layer that applies shared filters to local regions of an input representation while preserving spatial organization.
- How it is used
- Extracts spatial image features for recognition and for the encoder of a U-Net used in image generation.
- How deep it goes
- Traces filter scanning, dot products, bias, feature maps, padding, and stride through worked calculations and a simple implementation.
- Examples
- Uses a dot-product row calculation and eight 3 × 3 filters on an 8 × 8 noisy image.
- What you can do after
- Builds a simple convolution from scratch using filters, padding, stride, and bias.
Read how Grokking AI Algorithms, Second Edition explains convolutional layer →
Evolutionary Deep Learning: Genetic algorithms and neural networks
A convolutional layer applies learned local filters across structured input locations to detect spatial or otherwise local patterns.
- How it is used
- Extracts image features for CNN classifiers and for autoencoder encoding and reconstruction.
- How deep it goes
- Demonstrates sliding learned filters and Keras layer construction, then encodes filter and kernel choices for evolutionary architectures.
- Examples
- Uses Fashion-MNIST CNNs, a 28×28 grayscale convolutional autoencoder, and randomly generated architecture gene sequences.
- What you can do after
- Apply it via Keras Conv2D to assemble CNN and autoencoder feature-extraction paths and vary their architecture parameters.
Optimization Algorithms: AI techniques for design, planning, and control problems
A transformation that applies shared learned weights to neighboring feature representations.
- How it is used
- Uses convolution to learn node representations from local graph structure for graph embedding and classification.
- How deep it goes
- Explains the operator’s structural intuition and demonstrates a two-layer GCN, but does not derive convolution mathematically.
- Examples
- Uses GCNConv layers, the Cora dataset, edge indices, ReLU, dropout, and a 200-epoch Adam training loop.
- What you can do after
- Builds a node-embedding model with PyTorch Geometric’s GCNConv layer and trains it on graph data.
Learn Generative AI with PyTorch
A PyTorch convolution layer that applies learned 2D filters to an input tensor to produce feature maps.
- How it is used
- Extracts spatial features from images for classification, discrimination, encoding, and generative reconstruction.
- How deep it goes
- Explains sliding-filter arithmetic, tensor shapes, parameters, learned weights, stride, padding, and multi-layer architectures.
- Examples
- Uses a hand-weighted two-by-two filter, a DCGAN discriminator, and a VAE encoder to demonstrate outputs and architecture.
- What you can do after
- Build it from scratch using PyTorch nn.Conv2d, configure tensor channels and spatial movement, and inspect resulting feature maps.
Read how Learn Generative AI with PyTorch explains convolutional layer →
Sutskever's List
A convolutional layer is a neural-network layer that applies learned local filters across an input to produce spatial feature responses.
- How it is used
- Enables automatic, hierarchical feature extraction in AlexNet’s image-classification architecture.
- How deep it goes
- Explains feature progression, parameter sharing, filter size, and stride through architectural examples, without deriving convolution mathematically.
- Examples
- Uses AlexNet’s 224 × 224 × 3 input, 11 × 11 first-layer filters, stride of 4, and two-GPU architecture diagram.
- What you can do after
- Evaluate/understand how filter size, stride, and pooling change spatial dimensions while convolutional layers build increasingly complex image features.
Machine Learning Algorithms in Depth
A convolutional layer is a neural-network layer that applies learned convolution kernels to an input representation.
- How it is used
- Uses learned local filters to extract features from images, time series, and volumetric data.
- How deep it goes
- Defines sliding kernels, dot products, feature maps, stacking, and activation placement, but does not derive gradient formulas.
- Examples
- Demonstrates 2D image convolution in LeNet for MNIST and 1D convolution in a multi-input question-similarity model.
- What you can do after
- Builds CNNs with Conv2D or Conv1D, pooling, nonlinearities, and downstream classification layers in Keras/TensorFlow.
Read how Machine Learning Algorithms in Depth explains convolutional layer →
Build a Text-to-Image Generator (from Scratch)
Conv2d is a two-dimensional convolution layer that applies learned spatial filters to image-like tensors.
- How it is used
- Extracts spatial features for image classification and denoising architectures.
- How deep it goes
- Explains filters, feature maps, and architectural roles, but stops short of deriving convolution numerically or implementing Conv2d from scratch.
- Examples
- Uses image denoising, U-Net feature extraction, and 32 × 32 image patches projected into 64 token vectors.
- What you can do after
- Evaluate/understand how learned filters produce feature maps and support downsampling, denoising, and patch-token conversion.
Read how Build a Text-to-Image Generator (from Scratch) explains convolutional layer →
Distributed Machine Learning Patterns
A convolutional layer is a neural-network layer that applies learned convolutional filters to its input.
- How it is used
- Builds image-classification CNNs by extracting feature mappings before pooling and dense classification.
- How deep it goes
- Defines layer placement and TensorFlow configuration, but stops short of convolution arithmetic or filter-internals.
- Examples
- Uses a three-layer 28 × 28 image CNN and a LeNet architecture for classifying images or video frames.
- What you can do after
- Build it from scratch with TensorFlow Sequential and Conv2D, then inspect, compile, train, and monitor the resulting CNN.
Read how Distributed Machine Learning Patterns explains convolutional layer →
Grokking Machine Learning
A convolutional layer is a neural-network layer that produces a filtered representation by applying convolutions across an input.
- How it is used
- Adapts neural-network architectures to complicated images where flattening pixels into a long vector loses information.
- How deep it goes
- Sketches a sliding-window convolution with example window sizes, but gives no formula or implementation details.
- Examples
- Uses MNIST handwritten digits and CIFAR-10 color images as image-recognition examples.
- What you can do after
- Understand how a small window moves across an image and applies convolutions to form a smaller representation.
Read how Grokking Machine Learning explains convolutional layer →
Also covered in
- Deep Learning with JAX
- Fight Fraud with Machine LearningIn early access (MEAP)
- Data Without Labels
- The AI Pocket Book
What to know first
- convolutional neural networkA convolutional neural network is a neural-network architecture that processes structured inputs with convolutional operations, typically using learned local filters to capture patterns.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- linear layerA linear layer is a neural-network layer that applies a learned affine transformation to its input, typically using weights and a bias.
- accuracyAccuracy is the degree to which a result agrees with a specified truth, reference, or criterion, commonly measured as the proportion of evaluated predictions that are correct.
Related concepts
- convolutional neural networkused by · A convolutional neural network is a neural-network architecture that processes structured inputs with convolutional operations, typically using learned local filters to capture patterns.
- feature mapproduces · A neural-network feature map is a spatially organized array of activation values representing learned features at different locations or channels.
- downsamplingused by · Downsampling is the reduction of data quantity, spatial resolution, temporal resolution, or sampling rate by retaining, selecting, or aggregating fewer representative values or observations.
- convolution kerneluses · A convolution kernel is an array or tensor of weights applied to local regions of structured input to compute convolution responses.
- batch sizeuses · Batch size is the number of items grouped for processing together in a single batch or computational operation.
- encoderused by · An encoder is a component or process that transforms input into an encoded or internal representation for subsequent processing, transmission, or decoding.
Questions about convolutional layer
What is convolutional layer?
A convolutional layer is a neural-network layer that applies shared learned filters to local regions of structured input to produce feature representations.
Which Manning books explain convolutional layer?
Natural Language Processing in Action, Second Edition, Inside Deep Learning: Math, Algorithms, Models, Math and Architectures of Deep Learning, Deep Learning with PyTorch, Second Edition, Deep Learning with Python, Third Edition, Deep Learning with R, Third Edition, Grokking AI Algorithms, Second Edition, Evolutionary Deep Learning: Genetic algorithms and neural networks and 7 more.
What should I know before learning convolutional layer?
Manning books that teach convolutional layer usually introduce convolutional neural network, language model, linear layer and accuracy first.
What is convolutional layer also called?
Convolutional layer is also called convolution or Conv2D.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.














