arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1904.08368cs.LGcs.PLstat.ML
收藏

Relay:一个用于深度学习的高级编译器

Relay: A High-Level Compiler for Deep Learning

University of Washington(华盛顿大学)

Jared Roesch, Steven Lyubomirsky, Marisa Kirisame, Logan Weber, Josh Pollock, Luis Vega, Ziheng Jiang, Tianqi Chen, Thierry Moreau, Zachary Tatlock

摘要:

用于编写、编译和优化深度学习(DL)模型的框架最近在计算机视觉和自然语言处理等领域取得了进展。扩展这些框架,以适应快速多样化的景观DL模型和硬件平台提出了具有挑战性的表现力,可组合性和可移植性之间的权衡。我们提出了Relay,一个新的DL编译器框架。Relay的功能性、静态类型的中间表示(IR)统一和概括了现有的DL IR,以表达最先进的模型。引入Relay的表达性IR需要仔细设计特定于域的优化,通过Relay的扩展机制来解决。使用这些扩展机制,Relay支持一个统一的编译器,可以针对各种硬件平台。我们的评估展示了Relay在广泛的型号和设备(CPU、GPU和新兴加速器)上的竞争性能。Relay的设计演示了统一IR如何在不影响性能的情况下提供表现力、可组合性和可移植性。

英文摘要:

Frameworks for writing, compiling, and optimizing deep learning (DL) models have recently enabled progress in areas like computer vision and natural language processing. Extending these frameworks to accommodate the rapidly diversifying landscape of DL models and hardware platforms presents challenging tradeoffs between expressivity, composability, and portability. We present Relay, a new compiler framework for DL. Relay's functional, statically typed intermediate representation (IR) unifies and generalizes existing DL IRs to express state-of-the-art models. The introduction of Relay's expressive IR requires careful design of domain-specific optimizations, addressed via Relay's extension mechanisms. Using these extension mechanisms, Relay supports a unified compiler that can target a variety of hardware platforms. Our evaluation demonstrates Relay's competitive performance for a broad class of models and devices (CPUs, GPUs, and emerging accelerators). Relay's design demonstrates how a unified IR can provide expressivity, composability, and portability without compromising performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑