Skip to content

Experimental WebGPU Tensors framework using Typescript and Rust. Works like PyTorch, but running in a browser or using Deno.

License

Notifications You must be signed in to change notification settings

mikbry/webgpu-tensors

Repository files navigation

webgpu-tensors

Experimental WebGPU/Js Tensors library. Inspired by Pytorch.

Run examples

Using Deno

deno run ./examples/ex1.ts

Using Vite

npm run dev

It will run on your browser using WebGPU if present, otherwise CPU.

Using Rust native

cargo run --example ex0

Using Python

Pytorch reference

python examples/ex2.py

Run tests

Using Deno

deno task test

Deno coverage is not working: Issue

Using Vite

npm run test

No WebGPU on Node.js

Using Python

Pytorch reference

python -m unittest tests/tensors_test.py

About

Experimental WebGPU Tensors framework using Typescript and Rust. Works like PyTorch, but running in a browser or using Deno.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published