Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PyTorch Deep Learning Hands-On

You're reading from   PyTorch Deep Learning Hands-On Build CNNs, RNNs, GANs, reinforcement learning, and more, quickly and easily

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781788834131
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Sherin Thomas Sherin Thomas
Author Profile Icon Sherin Thomas
Sherin Thomas
Sudhanshu Passi Sudhanshu Passi
Author Profile Icon Sudhanshu Passi
Sudhanshu Passi
Arrow right icon
View More author details
Toc

Model implementation

Implementing the model is, after all, the most important step in our pipeline. In a way, we have built the whole pipeline for this step. Apart from building the network architecture, there are numerous details we need to consider to optimize our implementation (in terms of effort, time, and perhaps code efficiency as well).

In this session, we will discuss profiling and bottleneck tools available in the PyTorch package itself and ignite, a recommended trainer utility for PyTorch. The first part covers bottleneck and profiling utility, which is essential when the model starts underperforming and you need to know what went wrong where. The second part of this session explains ignite, the trainer module.

A trainer network is not really an essential component, but it is a good-to-have helper utility that saves a lot of time writing boilerplate and fixing bugs. Sometimes, it can reduce the number of lines of your program by half, which also helps to improve...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime