Glowstick: Safe and Efficient Tensor Operations in Rust

2025-06-09
Glowstick: Safe and Efficient Tensor Operations in Rust

Glowstick is a Rust crate that makes working with tensors safe, easy, and fun by tracking tensor shapes within the type system. It offers a variety of tensor operations including matrix multiplication, convolution, reshaping, squeezing, flattening, and more. Integrating seamlessly with popular Rust ML frameworks like Candle and Burn, Glowstick empowers Rust developers with powerful tensor computation capabilities, significantly simplifying the development of deep learning models. Note that the project is currently pre-1.0 and subject to breaking changes.

Development Tensor