• Stars
    star
    776
  • Rank 58,561 (Top 2 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created about 4 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AutoKernel 是一个简单易用,低门槛的自动算子优化工具,提高深度学习算法部署效率。

English | 简体中文

AutoKernel

Introduction

Neural networks are now used in a wide variety of applications. Efficient execution of Neural networks on various devices plays a critical role for these applications. Facing the rapid evolution of deep learning algorithms, there're limited qualified programmers to write hand optimized low-level kernels on different hardware platforms. Using automatic optimization tools to generate high-performance implementations become a promising solution.

AutoKernel began as a research project at OPEN AI LAB. The project is now open source. AutoKernel is an operator optimzation tools for automatically generating high-performance low-level codes for diverse hardware backends. It aims to accelerate the development of high performance operators on various hardware including specialized accelerators.

AutoKernel Architecture

AutoKernel arch

AutoKernel consists of three modules:

  • Operator Generator:

    This module uses the open source project Halide. Halide is a domain specific language (DSL), embedded in C++, designed to make it easier to write high-performance image processing code on modern machines. Halide seperates the algorithm description from its schedule. The input of this module is the algorithm description of operator, and the output is compiled optimized assembly code/object file for corresponding back-ends.

  • AutoSearch

    AutoSearch is an automatic module for searching optimized schedules for halide operators, using multiple optimization algorithms (greedy algorithm, reinforce learning, marchine learning, ...). It supports searching optimized schedules on both CPU and GPU, and generate code files running on different platforms (x86 or arm). This module is still under developping.

  • AutoKernel Plugin:

    AutoKernel Plugin realizes one-click integration of auto-generated optimized operator codes into Tengine, without modifying the core code base of Tengine. AutoKernel plugin realizes the one-click deployment of the automatic generated operator implements.

Features

  • Automated
  • Efficient
  • User-friendly

Docker

We provide following dockers with Halide and Tengine installed:

  • cpu: openailab/autokernel
  • cuda: openailab/autokernel:cuda
  • opencl: openailab/autokernel:opencl

Detail Dockerfiles, see Dockerfiles

[NOTE]: if using the cuda image, you need use nvidia-docker instead of docker, here's nvidia-docker install-guide.

nvidia-docker pull openailab/autokernel:cuda
nvidia-docker run -it openailab/autokernel:cuda /bin/bash

License

Discussion

  • Github issues
  • QQ group: 829565581

More Repositories

1

Tengine

Tengine is a lite, high performance, modular inference engine for embedded device
C++
4,625
star
2

TengineKit

TengineKit - Free, Fast, Easy, Real-Time Face Detection & Face Landmarks & Face Attributes & Hand Detection & Hand Landmarks & Body Detection & Body Landmarks & Iris Landmarks & Yolov5 SDK On Mobile.
C++
2,386
star
3

FaceDetection

C++ project to implement MTCNN, a perfect face detect algorithm, on different DL frameworks. The most popular frameworks: caffe/mxnet/tensorflow, are all suppported now
C++
270
star
4

Caffe-HRT

Heterogeneous Run Time version of Caffe. Added heterogeneous capabilities to the Caffe, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original Caffe architecture which users deploy their applications seamlessly.
C++
269
star
5

YSQfastfd

A fast binary library for face detection and face landmark detection in images. No float point operations, especially suit for low cost Arm CPUs, The highest accuracy on FDDB among non deep learning methods
C++
197
star
6

FaceRecognition

This is an implematation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenenCNN algorithm.
C++
148
star
7

Tengine-Convert-Tools

Tengine Convert Tool supports converting multi framworks' models into tmfile that suitable for Tengine-Lite AI framework.
C++
94
star
8

TengineFactory

Algorithm acceleration landing framework, let you complete the development of algorithm at low cost.eg: Facedetect, FaceLandmark..
C++
90
star
9

TengineGst

TengineGst is a streaming media analytics framework, based on GStreamer multimedia framework, for creating varied complex media analytics pipelines. It ensures pipeline interoperability and provides optimized media, and inference operations using Tengine Toolkit Inference Engine backend, across varied architecture - CPU, iGPU and VPU.
C++
75
star
10

MXNet-HRT

Heterogeneous Run Time version of MXNet. Added heterogeneous capabilities to the MXNet, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original MXNet architecture which users deploy their applications seamlessly.
C++
72
star
11

cortex-m-kws

Cortex M KWS example with Tengine Lite.
C
71
star
12

Tengine-app

This is a repository for applications powered by Tengine. Please feel free to try them on your device
C++
56
star
13

ObjectTracker

This object Tracker algorithm is a TLD(Long-term tracker) tracker base on KCF or DSST.
C++
45
star
14

SpeechRecognition

A local auto speech recognition project based on Kaldi and ALSA.
C++
36
star
15

TensorFlow-HRT

Heterogeneous Run Time version of TensorFlow. Added heterogeneous capabilities to the TensorFlow, uses heterogeneous computing infrastructure framework to speed up Deep Learning on Arm-based heterogeneous embedded platform. It also retains all the features of the original TensorFlow architecture which users deploy their applications seamlessly.
C++
36
star
16

CVGesture

It implements detection and recognition to different hand gestures, based on OpenCV 3.3.0 (Open Source Computer Vision Library)
C++
31
star
17

TengineInferPipe

C++
24
star
18

FaceRecognition2

FaceRecognition2 is an implementation project of face detection and recognition. The face detection using MTCNN algorithm, and recognition using LightenedCNN algorithm.
C++
20
star
19

AndroidFacedemo

An face recogniztion detect project on android based on CaffeOnACL
C++
11
star
20

AndroidCVDemo

An CV demo in Android, include Gesture recognition and Object traking
C++
4
star
21

autokernel-docs-en

autokernel documentation (english version)
Python
3
star
22

autokernel-docs-cn

autokernel documentation
Python
1
star