Coder Social home page Coder Social logo

isabella232 / wasi-nn-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bytecodealliance/wasi-nn

0.0 0.0 0.0 12.5 MB

High-level bindings for wasi-nn system calls

License: Apache License 2.0

TypeScript 19.06% Shell 1.46% Rust 20.30% CSS 32.09% HTML 27.08%

wasi-nn-1's Introduction

wasi-nn

A Bytecode Alliance project

High-level bindings for writing wasi-nn applications

CI status

Introduction

This project provides high-level wasi-nn bindings for Rust and AssemblyScript. The basic idea: write your machine learning application in a high-level language using these bindings, compile it to WebAssembly, and run it in a WebAssembly runtime that supports the wasi-nn proposal, such as Wasmtime.

NOTE: These bindings are experimental (use at your own risk) and subject to upstream changes in the wasi-nn specification.

Use

  • In Rust, download the crate from crates.io by adding wasi-nn = "0.1" as a Cargo dependency; more information in the Rust README.
  • In AssemblyScript, download the package from npmjs.com by adding "as-wasi-nn": "^0.1" as an NPM dependency; more information in the AssemblyScript README.
  • When you call wasmtime, you'll need to pass the flag --wasi-modules=experimental-wasi-nn to enable the use use of wasi-nn.

Examples

This repository includes examples of using these bindings. See the Rust example and AssemblyScript example to walk through an end-to-end image classification using an AlexNet model. Currently the example uses OpenVino as the backend. If you are running Ubuntu, you can simply run the script to install the supported version.github/actions/install-openvino/install.sh. Otherwise you'll need to visit the Installation Guides and follow the instructions for your OS. The version of OpenVino currently supported is openvino_2020.4.287.

Once you have OpenVino installed, run them with:

Related Links

License

This project is licensed under the Apache 2.0 license. See LICENSE for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

wasi-nn-1's People

Contributors

abrown avatar brianjjones 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.