Here is a C++ version of micrograd implemented in modern C++ (C++20). It replicates the core components of the original Python implementation, with a few data structures and design patterns adapted to better suit C++.
https://github.com/chuzcjoe/gradcpp
Here is a C++ version of micrograd implemented in modern C++ (C++20). It replicates the core components of the original Python implementation, with a few data structures and design patterns adapted to better suit C++.
https://github.com/chuzcjoe/gradcpp