coreylowman / dfdx

Deep learning in Rust, with shape checked tensors and neural networks
Other
1.71k stars 99 forks source link

feat(webgpu): add tensor operations #904

Open DonIsaac opened 9 months ago

DonIsaac commented 9 months ago

What This PR Does

Starts a general binary op implementation for Webgpu. This code is based on an (old, in-progress WGPU branch)[https://github.com/DonIsaac/dfdx/tree/don/feat/wgpu2] I made a while ago.

I've (mostly) got forward down, but I think I need some help with backward

Todo

Other Notes

DonIsaac commented 9 months ago

Note: I've commented out todo implementations for all BinaryKernel and UnaryKernel traits, and I've commented out the top-level exports for Webgpu while I write code. This is so I can build it without getting 100+ compilation errors; I'll re-add these later as needed.