Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On GPU Computing with Python

You're reading from  Hands-On GPU Computing with Python

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781789341072
Pages 452 pages
Edition 1st Edition
Languages
Author (1):
Avimanyu Bandyopadhyay Avimanyu Bandyopadhyay
Profile icon Avimanyu Bandyopadhyay

Table of Contents (17) Chapters

Preface Section 1: Computing with GPUs Introduction, Fundamental Concepts, and Hardware
Introducing GPU Computing Designing a GPU Computing Strategy Setting Up a GPU Computing Platform with NVIDIA and AMD Section 2: Hands-On Development with GPU Programming
Fundamentals of GPU Programming Setting Up Your Environment for GPU Programming Working with CUDA and PyCUDA Working with ROCm and PyOpenCL Working with Anaconda, CuPy, and Numba for GPUs Section 3: Containerization and Machine Learning with GPU-Powered Python
Containerization on GPU-Enabled Platforms Accelerated Machine Learning on GPUs GPU Acceleration for Scientific Applications Using DeepChem Other Books You May Enjoy Appendix A

Writing your first GPU-accelerated machine learning programs

For our first GPU-accelerated program, let's run the following code for training based on five important steps.

To ensure best accuracy for inference from the training datasets, these important steps that are required to be performed sequentially are as follows:

  1. Building the model
  2. Compiling the model
  3. Training the model
  4. Evaluating accuracy
  5. Making predictions

Instead of describing the preceding steps theoretically, let's use a hands-on approach based on code execution in order to understand them better. We will now see an example of how they are implemented.

Fashion-MNIST prediction with TensorFlow

Through our first Keras-based TensorFlow program, we...

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 $15.99/month. Cancel anytime}