You really should have a GPU available in order to run some of the recipes in this book, or you would better off using Google Colab. There are some extra steps required to make sure you have the correct NVIDIA graphics drivers installed, along with some additional libraries. Google provides up-to-date instructions on the TensorFlow website at https://www.tensorflow.org/install/gpu. Similarly, PyTorch versions have minimum requirements for NVIDIA driver versions (which you'd have to check manually for each PyTorch version). Let's see how to use dockerized environments to help set this up.
You can find the recipes in this chapter in the GitHub repository of this book at https://github.com/PacktPublishing/Artificial-Intelligence-with-Python-Cookbook.