Aussie AI

Expression Transformations

  • Book Excerpt from "Generative AI in C++"
  • by David Spuler, Ph.D.

Expression Transformations

Expression-level types of arithmetic improvements on an expression with multiple operations include:

  • Constant folding (compile-time precomputation of constant expressions)
  • Common subexpression elimination (only computing things once in expressions)
  • Algebraic identities in computations
  • Type consistency (avoid conversions)

 

Next:

Up: Table of Contents

Buy: Generative AI in C++: Coding Transformers and LLMs

Generative AI in C++ The new AI programming book by Aussie AI co-founders:
  • AI coding in C++
  • Transformer engine speedups
  • LLM models
  • Phone and desktop AI
  • Code examples
  • Research citations

Get your copy from Amazon: Generative AI in C++