C++ Template Metaprogramming in Practice

A Deep Learning Framework

AvLi Wei

E-bok
PDF, Engelska, 2020

1 921 kr

Läs direkt i Bokus Reader – eller ladda ned till din enhet (PDF kräver ofta zoom och scroll på små skärmar).

Fler format och utgåvor

Beskrivning

Using the implementation of a deep learning framework as an example, C++ Template Metaprogramming in Practice: A Deep Learning Framework explains the application of metaprogramming in a relatively large project and emphasizes ways to optimize systems performance. The book is suitable for developers with a basic knowledge of C++. Developers familiar with mainstream deep learning frameworks can also refer to this book to compare the differences between the deep learning framework implemented with metaprogramming and compile-time computing with deep learning frameworks using object-oriented methods.

Consisting of eight chapters, the book starts with two chapters discussing basic techniques of metaprogramming and compile-time computing. The rest of the book’s chapters focus on the practical application of metaprogramming in a deep learning framework. It examines rich types and systems, expression templates, and writing complex meta-functions, as well as such topics as:

  • Heterogeneous dictionaries and policy templates
  • An introduction to deep learning
  • Type system and basic data types
  • Operations and expression templates
  • Basic layers
  • Composite and recurrent layers
  • Evaluation and its optimization

Metaprogramming can construct flexible and efficient code. For C++ developers who are familiar with object-oriented programming, the main difficulty in learning and mastering C++ metaprogramming is establishing the thinking mode of functional programming. The meta-programming approach involved at compile time is functional, which means that the intermediate results of the construction cannot be changed, and the impact may be greater than expected. This book enables C++ programmers to develop a functional mindset and metaprogramming skills. The book also discusses the development cost and use cost of metaprogramming and provides workarounds for minimizing these costs.

Produktinformation

Utforska kategorier

Hoppa över listan

Mer från samma författare

Hoppa över listan

Du kanske också är intresserad av

Tone Schunnesson - Ultravåld, Inbunden
  • -19%

Ultravåld

Tone Schunnesson

Inbunden, 2026

4,3 utav 5 stjärnor. Totalt antal röster:(14)

209 kr259 kr

Magnus Abrahamsson, Anders Nilsson, Joakim Hansson - Noll tolerans, Inbunden
  • -22%

Noll tolerans

Magnus Abrahamsson, Anders Nilsson, Joakim Hansson

Inbunden, 2026

179 kr229 kr

Fredrik Backman - Mina vänner, Pocket
  • 4 för 3

Mina vänner

Fredrik Backman

Pocket, 2026

4,5 utav 5 stjärnor. Totalt antal röster:(14)

99 kr

Malin Nordström - Kalla mig syster, Pocket
  • -30%
Del 1

Kalla mig syster

Malin Nordström

Pocket, 2026

5,0 utav 5 stjärnor. Totalt antal röster:(1)

69 kr99 kr

Jens Ganman - Skjut Gräv Tig, Häftad
  • -17%
Del 2

Skjut Gräv Tig

Jens Ganman

Häftad, 2026

4,8 utav 5 stjärnor. Totalt antal röster:(150)

189 kr229 kr

Åsa Hellberg - Den femte dagen, Pocket
  • 4 för 3
Del 1

Den femte dagen

Åsa Hellberg

Pocket, 2026

4,2 utav 5 stjärnor. Totalt antal röster:(54)

99 kr