A few days ago I worked out a way of representing neural networks in Rust's type system via const generics and then that lead me to making a neural network library that doesn't use the standard library or any heap allocation, then that lead me to today where I have a pre-trained neural network running on an ATtiny85 approximating the output of an XOR gate, I'm in no way a very good data scientist or embedded engineer at all so the fact I managed to get a neural network running on an 1MHz 8 bit chip with 8k of program memory with 512 BYTES of ram, all whilst doing almost zero optimisations is insane to me
https://github.com/jasonalexander-ja/mynn-attiny-example
#rust #rustlang #tinyml #embedded