wasm-tensorflow-tfjs-core 0.1.1

Rust WASM Bindings for the npm package `@tensorflow/tfjs-core`
Documentation
1
2
3
4
5
6
7
8
use wasm_bindgen::prelude::*;
use wasm_bindgen_futures::js_sys::Promise;

#[wasm_bindgen(module = "@tensorflow/tfjs-core")]
extern "C" {
    #[wasm_bindgen(js_name = setBackend)]
    pub fn set_backend(backend_name: &str) -> Promise;
}