PyTorch Written in C Developer thevoxium released bare-lm, a minimal autograd tensor library written in C, installable via a git clone and make build or prebuilt Linux and macOS tarballs. The library provides a Memory object with 256 MB permanent and temporary arenas, a ParameterList for trainable tensors, and operations including linear_t, relu_t, sigmoid_t, mseloss_t, backward, zero_grad, and sgd_step, as shown in a 500-epoch XOR training example. bare-lm requires a C compiler, make, and OpenBLAS, and installs to /usr/local/include/bare.h and /usr/local/lib/libbare.{so,dylib}. A minimal autograd tensor library in C. You can install bare-lm in two ways. Requirements: - A C compiler cc , gcc , or clang - make - OpenBLAS headers + library Install OpenBLAS first: macOS Homebrew brew install openblas Ubuntu / Debian sudo apt update && sudo apt install -y libopenblas-dev Then build and install: git clone https://github.com/thevoxium/bare-lm.git cd bare-lm macOS make OPENBLAS PREFIX=/opt/homebrew/opt/openblas Linux make sudo make install By default this installs to /usr/local/include/bare.h and /usr/local/lib/libbare.{so,dylib} . Each tagged release publishes prebuilt archives for Linux and macOS: - bare-