Giter Site home page Giter Site logo

jisuchoi01 / connx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tsnlab/connx

0.0 0.0 0.0 431.29 MB

C implementation of Open Neural Network Exchange Runtime

License: GNU General Public License v3.0

Python 6.59% Makefile 0.33% Shell 4.04% C 87.72% CMake 1.32%

connx's Introduction

CONNX

C implementation of Open Neural Network Exchange Runtime

Requirements

  • python3 # to run examples and test cases
  • cmake >= 3.1
  • ninja-build

Quick start

Compile in release mode

ports/linux$ mkdir build              # Make build directory
ports/linux/build$ cmake .. -G Ninja  # Generate build files with "Release" mode
ports/linux/build$ ninja              # Compile

You can find 'connx' executable in ports/linux/build directory.

Compile with sub-opset (optional)

If you want to compile CONNX with subset of operators, in case of inferencing MNIST only, just make ports/linux/opset.txt file as below. And just follow the compile process.

Add Conv MatMul MaxPool Relu Reshape

Run examples

Run MNIST example. (Mobilenet and YOLO will be coming soon)

ports/linux/build$ ninja mnist

Notice: If you want to run on Raspberry Pi 3, please compile with Release mode(CMAKE_BUILD_TYPE=Release) for sanitizer makes some problem.

ONNX compatibility test

Run the test cases in 'test' directory which contains converted test cases from ONNX. python3 with Numpy is required.

ports/linux/build$ ninja onnx

Performance profile report

If you want to profile performance, you need to compile CONNX in debugging mode first.

ports/linux/build$ cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug  # Generate build files
ports/linux/build$ ninja                                       # Compile
ports/linux/build$ ninja mnist                                 # Run an any example
ports/linux/build$ ninja prof                                  # Print performance profile report

Ports

Contribution

See CONTRIBUTING.md

Supported platforms

  • x86_64
  • x86 - with CLFAGS=-m32
  • Raspberry pi 4 (w/ 64-bit O/S)
  • Raspberry pi 3 (32-bit O/S)

License

CONNX is licensed under GPLv3. See LICENSE

connx's People

Contributors

semihlab avatar makerj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.