Book Image

Deep Learning with PyTorch Quick Start Guide

By : David Julian
Book Image

Deep Learning with PyTorch Quick Start Guide

By: David Julian

Overview of this book

PyTorch is extremely powerful and yet easy to learn. It provides advanced features, such as supporting multiprocessor, distributed, and parallel computation. This book is an excellent entry point for those wanting to explore deep learning with PyTorch to harness its power. This book will introduce you to the PyTorch deep learning library and teach you how to train deep learning models without any hassle. We will set up the deep learning environment using PyTorch, and then train and deploy different types of deep learning models, such as CNN, RNN, and autoencoders. You will learn how to optimize models by tuning hyperparameters and how to use PyTorch in multiprocessor and distributed environments. We will discuss long short-term memory network (LSTMs) and build a language model to predict text. By the end of this book, you will be familiar with PyTorch's capabilities and be able to utilize the library to train your neural networks with relative ease.
Table of Contents (8 chapters)

Convolutional networks

So far, we have used fully connected layers in our networks, where each input unit represents a pixel in an image. With convolutional networks, on the other hand, each input unit is assigned a small localized receptive field. The idea of the receptive field, like ANNs themselves, is modelled on the human brain. In 1958, it was discovered that neurons in the visual cortex of the brain respond to stimuli in a limited region of a field of vision. More intriguing is that sets of neurons respond exclusively to certain basic shapes. For example, a set of neurons may respond to horizontal lines, while others respond only to lines at other orientations. It was observed that sets of neurons could have the same receptive field, but respond to different shapes. It was also noticed that neurons were organized into layers with deeper layers responding to more complex...