Git Product home page Git Product logo

pocketnn's Introduction

PocketNN

This is an official, proof-of-concept C++ implementation of the paper PocketNN: Integer-only Training and Inference of Neural Networks via Direct Feedback Alignment and Pocket Activations in Pure C++. The paper was accepted in TinyML 2022 Research Symposium as a full paper.

The very first run

Just run the main.cpp file to see training and testing a PocketNN network with the MNIST dataset! Other sample usages are written in pktnn_examples.cpp file.

demo screen capture animation

Notes

I used Visual Studio 2019 to write this code. Visual Studio solution file is included in the repository to help importing the project.

Citing PocketNN

TinyML 2022's official citation information will be updated soon. In the meantime, please use the arXiv information as below.

@article{song2022pocketnn,
  title={PocketNN: Integer-only Training and Inference of Neural Networks via Direct Feedback Alignment and Pocket Activations in Pure C++},
  author={Song, Jaewoo and Lin, Fangzhen},
  journal={arXiv preprint arXiv:2201.02863},
  year={2022}
}

Presentation video

Please click the image below to watch a youtube video which was recorded at tinyML 2022.

Youtube link of TinyML 2022: PocketNN Presentation

A presentation video recorded at tinyML 2022.

License

PocketNN uses the MIT License. For details, please see the LICENSE file.

Sample datasets

Two sample datasets are copied from their original website.

  • MNIST dataset: MNIST dataset is from the MNIST website. The site says "Please refrain from accessing these files from automated scripts with high frequency. Make copies!" So I made the copies and put them in this repository.
  • Fashion-MNIST dataset: Fashion-MNIST dataset is from its github repository. It follows the MIT License which allows copy and distribution.

pocketnn's People

Contributors

jaewoosong 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.