C++ Template Metaprogramming in Practice (e-bog) af Wei, Li
Wei, Li (forfatter)

C++ Template Metaprogramming in Practice e-bog

948,41 DKK (inkl. moms 1185,51 DKK)
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 a...
E-bog 948,41 DKK
Forfattere Wei, Li (forfatter)
Udgivet 1 december 2020
Længde 308 sider
Genrer Programming and scripting languages: general
Sprog English
Format epub
Beskyttelse LCP
ISBN 9781000219777
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 templatesAn introduction to deep learningType system and basic data typesOperations and expression templatesBasic layersComposite and recurrent layersEvaluation and its optimizationMetaprogramming 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.