Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 1.06 KB

README.md

File metadata and controls

65 lines (42 loc) · 1.06 KB

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