Branch - Version 1
1. Using MNIST dataset currently.
2. Installing PyTorch C++ API.
3. Training using PyTorch C++ API.
Note: There may be C10:errors either because of:
- Incorrect data path. Check your data directory of MNIST dataset.
- Make sure while using
cmake
:cmake -DCMAKE_PREFIX_PATH=/absolute_path_to_libtorch/
- it should be absolute path tolibtorch.
Note: Prefer using stable version of libtorch. This code doesn't use GPU, as I don't have the resources to test it right now.
mkdir build
cd build
- cmake:
cmake -DCMAKE_PREFIX_PATH=/home/user/path/to/libtorch/ ..
make
./example