C++ Template Metaprogramming in Practice

A Deep Learning Framework
 
 
Auerbach (Verlag)
  • 1. Auflage
  • |
  • erschienen am 1. Dezember 2020
  • |
  • 338 Seiten
 
E-Book | PDF ohne DRM | Systemvoraussetzungen
978-1-000-21973-9 (ISBN)
 

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.

    1. Auflage
    • Englisch
    • Milton
    • |
    • Großbritannien
    Taylor & Francis Ltd
    • Für höhere Schule und Studium
    10 schwarz-weiße Fotos, 2 schwarz-weiße Tabellen
    • 13,35 MB
    978-1-000-21973-9 (9781000219739)
    weitere Ausgaben werden ermittelt

    Li Wei graduated from Tsinghua University in 2011 and has been engaged in the development and maintenance of the online prediction section of the deep learning machine translation system at Baidu's Natural Language Processing Department. He currently works for Microsoft Advanced Technology Center and has more than ten years of relevant development experience, with a strong interest in C++ template meta-programming and compile-time computing.

    Part I. Introduction 1. Basic Tips 2. Heterogeneous Dictionaries and Policy Templates Part II. The Deep Learning Framework 3. A Brief Introduction to Deep Learning 4. Type System and Basic Data Types 5. Operations and Expression Templates 6. Basic Layers 7. Composite and Recurrent Layers 8. Evaluation and Its Optimization.

    Dateiformat: PDF
    Kopierschutz: ohne DRM (Digital Rights Management)

    Systemvoraussetzungen:

    Computer (Windows; MacOS X; Linux): Verwenden Sie zum Lesen die kostenlose Software Adobe Reader, Adobe Digital Editions oder einen anderen PDF-Viewer Ihrer Wahl (siehe E-Book Hilfe).

    Tablet/Smartphone (Android; iOS): Installieren Sie die kostenlose App Adobe Digital Editions oder eine andere Lese-App für E-Books (siehe E-Book Hilfe).

    E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nur bedingt: Kindle)

    Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist. Ein Kopierschutz bzw. Digital Rights Management wird bei diesem E-Book nicht eingesetzt.

    Weitere Informationen finden Sie in unserer E-Book Hilfe.


    Download (sofort verfügbar)

    104,99 €
    inkl. 7% MwSt.
    Download / Einzel-Lizenz
    PDF ohne DRM
    siehe Systemvoraussetzungen
    E-Book bestellen