Porting ONNC to Proprietary DLA is a Breeze

Figure 1: The ONNC software stack, which provides both the LLVM IR and the ONNX IR for backend porting.
  • Inherit the class of DLATargetBackend.
  • Implement the class member functions addTensorSel, addTensorSched, addMemAlloc, and addCodeEmit.
  • Modify the make system to include your custom backend into ONNC.
  • addTensorSel: Select corresponding instructions for target devices.
  • addTensorSched: Schedule instructions.
  • addMemAlloc: Turn symbolic operands into memory addresses.
  • addCodeEmit: Emit binary codes for target devices.

--

--

--

The Open Neural Network Compiler (ONNC), a compiler that connects Open Neural Network Exchange Format (ONNX) to every deep learning accelerator (DLA).

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Production Release Highlights: June 24th, 2021

Linting OpenAPI specs using Spectral

Installing Expose on a Laravel Forge server with a custom domain and wildcard SSL

Auto-numbering rows in MySQL

StoryServer — implementation of Bookmark feature

Airfox August engineering update

From Apollo to Urql — Part 1

Advanced Django Development: How to build a professional CMS for any business? (Part #6)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ONNC

ONNC

The Open Neural Network Compiler (ONNC), a compiler that connects Open Neural Network Exchange Format (ONNX) to every deep learning accelerator (DLA).

More from Medium

[Paper review] Trained quantization thresholds for accurate and efficient fixed-point inference of…

The computer vision bias trilogy: Shortcut learning.

Cows walking on a beach. This image is used to show how AI (artificial intelligence) can misunderstand what it is looking at by looking at the wrong things. You might normally see cows in the field, farms, hills, Swiss alps etc.

Explainable AI: Saliency Maps

Backpropagation Deep Dive