wasm-tensorflow-tfjs-core

Crates.iowasm-tensorflow-tfjs-core
lib.rswasm-tensorflow-tfjs-core
version0.1.1
sourcesrc
created_at2023-11-30 23:12:27.596259
updated_at2023-12-07 05:45:32.546901
descriptionRust WASM Bindings for the npm package `@tensorflow/tfjs-core`
homepagehttps://github.com/ChocolateLoverRaj/wasm-tensorflow-tfjs-core
repositoryhttps://github.com/ChocolateLoverRaj/wasm-tensorflow-tfjs-core
max_upload_size
id1054575
size3,028
Rajas Paranjpe (ChocolateLoverRaj)

documentation

README

wasm-tensorflow-tfjs-core

What if you wanted to do this in JavaScript?

import '@tensorflow/tfjs-backend-webgl'
import { setBackend } from '@tensorflow/tfjs-core'

await setBackend('wegbl')

Just add this crate and you can do it in Rust!

// Somehow import '@tensorflow/tfjs-backend-webgl'
use wasm_tensorflow_tfjs_core::{set_backend, BackendName};

let result = set_backend(BackendName::Webgl).await;
Commit count: 4

cargo fmt