A project made to Learn pytorch on cpp
I was trying to debug this to understand the working of pytorch but I was unable to find the required src files anyways I made a few tutorials for referance soo...
to run any tutorial do the following :
-
go to the directory of the tutorial
-
create a build directory and change directory to 'build'
mkdir build
cd build - type the below command & replace the folder to the path of pytorch installation. (for installation refer below)
cmake -DCMAKE_PREFIX_PATH=/path/to/download/of/libtorch ..- make it
make- run the target file using ./file
open https://pytorch.org/
scroll down to download area:
select lang as c++ and rest all as per requirement finally download the links provided by the website below and unzip it