Hi,
I am very new to C++ and I was following this 2 tutorial to run the first code.
When I ran cmake --build . --config Release, I got the following error:
Scanning dependencies of target dcgan
[ 50%] Building CXX object CMakeFiles/dcgan.dir/dcgan.cpp.o
/home/sarvagya/Desktop/cpp/dcgan/dcgan.cpp: In function ‘int main()’:
/home/sarvagya/Desktop/cpp/dcgan/dcgan.cpp:5:25: error: ‘tensor’ is not a class, namespace, or enumeration
    5 |  torch::Tensor tensor = tensor::eye(3);
      |                         ^~~~~~
make[2]: *** [CMakeFiles/dcgan.dir/build.make:63: CMakeFiles/dcgan.dir/dcgan.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/dcgan.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

What am I doing wrong?