radu-matei / wasi-nn-guest

High-level bindings for wasi-nn system calls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

High-level bindings for wasi-nn system calls

License:Apache License 2.0


Languages

Language:Rust 49.6%Language:TypeScript 46.9%Language:Shell 3.5%