AntiLibrary5 / cplusplus_mnist

credits: https://github.com/pytorch/examples/tree/main/cpp/mnist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A simple CNN to recognize digits in MNIST with train and test code using the C++ API of PyTorch as an exercise. Credits to: https://github.com/pytorch/examples/tree/main/cpp/mnist

Steps to follow

  1. Download Libtorch from:
https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.2.2%2Bcu121.zip
  1. Build:
cmake -DCMAKE_PREFIX_PATH=/path/to/libtorch
make
  1. Run training:
./mnist

About

credits: https://github.com/pytorch/examples/tree/main/cpp/mnist


Languages

Language:C++ 58.8%Language:Python 30.2%Language:CMake 10.9%