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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

92b20c6 · Oct 8, 2024
Oct 8, 2024
Oct 8, 2024
Oct 8, 2024
Oct 8, 2024
Oct 8, 2024
Oct 2, 2024
Oct 7, 2024
Oct 7, 2024
Sep 13, 2024
Oct 4, 2024
Oct 1, 2024
Oct 1, 2024
Sep 30, 2024
Oct 4, 2024
Oct 4, 2024
Sep 30, 2024
Oct 4, 2024
Oct 4, 2024
Oct 1, 2024

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