Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Deep Learning with C++
  • Table Of Contents Toc
Deep Learning with C++

Deep Learning with C++

By : Bill Chen, Vikash Gupta
5 (1)
close
close
Deep Learning with C++

Deep Learning with C++

5 (1)
By: Bill Chen, Vikash Gupta

Overview of this book

Deep learning systems often struggle to meet performance demands in real-time and production environments. This book shows you how to build high-performance deep learning systems in C++, enabling efficient and scalable artificial intelligence (AI) in resource-constrained environments where performance matters. You’ll start by setting up a complete C++ deep learning environment and implementing core neural networks from scratch. As you progress, you’ll build advanced architectures, including Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), Long Short-Term Memory Networks (LSTMs), Generative Adversarial Networks (GANs), and Transformers, using C++, CUDA, and PyTorch’s C++ API. The book then focuses on model quantization and compression. It will guide you through the model deployment process in production with robust monitoring and explainability. You’ll also explore distributed training and techniques for real-time inference in performance-critical domains. By the end of this book, you’ll be able to design, optimize, and deploy deep learning systems in C++ that are production-ready, scalable, and efficient across multiple industries. *Email sign-up and proof of purchase required
Table of Contents (20 chapters)
close
close
Lock Free Chapter
1
Foundations of Deep Learning in C++
5
Building and Training Neural Networks in C++
12
Deploying, Monitoring, and Explaining Deep Learning Systems in Production
18
Other Books You May Enjoy
19
Index

Managing large-scale datasets

When datasets outgrow RAM, three patterns help: memory mapping, batch (streaming) I/O, and distributed filesystems. Here we focus on the first two because they're portable and easy to demonstrate in standalone C++; distributed filesystems require cluster infrastructure and are beyond this book's scope. For a runnable example that the snippets come from, see bigdata_demo.cpp.

Memory mapping

Memory-mapped I/O lets you treat a file as a contiguous block of memory, avoiding explicit read loops and extra copies—ideal for fast random access over large datasets. The RAII wrapper below opens a file read-only, maps it into the process address space, and ensures it is cleanly unmapped/closed on destruction (POSIX mmap; on Windows use CreateFileMapping/MapViewOfFile).

struct MappedFile {
  void* data=nullptr; size_t size=0; int fd=-1;
  explicit MappedFile(const std::string& path) {
    fd = ::open(path.c_str(), O_RDONLY);
    if (fd < 0) throw...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Deep Learning with C++
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon