Stream: general

Topic: Rust to wasm : wasmtime


view this post on Zulip Khelifa Saif eddine (Apr 27 2023 at 00:45):

hey guys i am trying to convert Rust into wasm by deploying some AI models using tract_tensorflow it seems to work fine and very nicely executed on wasme(r however i think there are lot of models are not supported by tract_tensorflow thus i wanted to use tensorflow crate directly (https://crates.io/crates/tensorflow) however it doesnt seem to build for --target wasm32-wasi i always get an error says : error: unable to find library -ltensorflow_framework , error-linking-with-rust-lld-failed-exit-status-1
anyone has any idea ? or clue may be

view this post on Zulip Andrew Brown (Apr 27 2023 at 00:49):

Maybe check out https://github.com/WebAssembly/wasi-nn; there's an implementation of this in Wasmtime that you can look at.

Neural Network proposal for WASI. Contribute to WebAssembly/wasi-nn development by creating an account on GitHub.

view this post on Zulip Andrew Brown (Apr 27 2023 at 00:50):

A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.
A fast and secure runtime for WebAssembly. Contribute to bytecodealliance/wasmtime development by creating an account on GitHub.

view this post on Zulip Khelifa Saif eddine (Apr 27 2023 at 02:22):

Andrew Brown said:

Maybe check out https://github.com/WebAssembly/wasi-nn; there's an implementation of this in Wasmtime that you can look at.

Thank you for your response
i tested wasi-nn i am trying to to run rust using pre-built libraries it without using wasi-nn , tract-rust + wasm to run some tests on wasmtime with pure code


Last updated: Nov 22 2024 at 16:03 UTC