Glow:用于神经网络的图降阶算法
Glow: Graph Lowering Compiler Techniques for Neural Networks
摘要:
本文介绍了Glow的设计,一个机器学习编译器的异构硬件。这是一种实用的编译方法,可以为多个目标生成高度优化的代码。Glow将传统的神经网络拓扑图简化为两阶段的强类型中间表示。高级中间表示允许优化器执行特定于域的优化。低层的基于编译的仅地址中间表示允许编译器执行与存储器相关的优化,例如指令调度、静态存储器分配和副本消除。在最底层,优化器执行特定于计算机的代码生成,以利用专门的硬件功能。Glow具有一个降低阶段,使编译器能够支持大量的输入运算符以及大量的硬件目标,无需在所有目标上实现所有运算符。降低阶段旨在减少输入空间,并允许新的硬件后端专注于少量的线性代数基元。
英文摘要:
This paper presents the design of Glow, a machine learning compiler for heterogeneous hardware. It is a pragmatic approach to compilation that enables the generation of highly optimized code for multiple targets. Glow lowers the traditional neural network dataflow graph into a two-phase strongly-typed intermediate representation. The high-level intermediate representation allows the optimizer to perform domain-specific optimizations. The lower-level instruction-based address-only intermediate representation allows the compiler to perform memory-related optimizations, such as instruction scheduling, static memory allocation and copy elimination. At the lowest level, the optimizer performs machine-specific code generation to take advantage of specialized hardware features. Glow features a lowering phase which enables the compiler to support a high number of input operators as well as a large number of hardware targets by eliminating the need to implement all operators on all targets. The lowering phase is designed to reduce the input space and allow new hardware backends to focus on a small number of linear algebra primitives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。