以Glow編譯神經網路模型至NVDLA
Compile Deep Neural Networks to NVDLA Using Glow
摘要
隨著人工智能的發展,我們在不同的深度學習框架上訓練模型,並部署預先訓練的模型在CPU或GPU上運行。由於物聯網設備計算和功率的能力受到限制,因此有一些深度學習加速器的設計來加速深度學習運算。但是,沒有完整的流程讓預訓練模型從框架部署至深度學習加速器。我們選擇NVIDIA深度學習加速器作為目標。另一方面,由於NVDC編譯器不是完全開源的,並只支持Caffe模型,我們通過NVDC編譯器生成的執行代碼來研究NVDLA的設計特性,並在此篇論文中,我們會詳細介紹NVDLA硬件規範。另外,我們選擇Glow,一種開源神經網絡編譯器,旨在將ONNX格式化模型編譯成為CPU可執行文件。本文旨在通過實現將ONNX操作映射到NVDLA硬件操作員的C運行時,將深度學習加速器添加到Glow的後端。
With the development of Artificial Intelligence, we train models on different frameworks and deploy pre-trained model for running on CPU or GPU. Because the ability of IoT devices computing and power are restricted, there are some designs of deep learning accelerator to accelerate DL computation. However, there is no entirely workflow to make pre-trained model from framework to DLA. We choose NVIDIA Deep Learning Accelerator (NVDLA) as target. On the other hand, since NVDC compiler is not totally open-source and it only supports Caffe model, we investigate design features of NVDLA by carefully inspecting the execution code generated from NVDC compiler. Also, we go through the detailed implementation by studying NVDLA hardware specification. In addition, we choose Glow, an open-source Neural Network compiler that aims to compile ONNX formatted model to CPU executables. This thesis is targeted to add Deep Learning Accelerator to backend of Glow by implementing a C runtime which maps ONNX-operations to NVDLA hardware operators.