Hi,
Thanks for the locations. So on my pi, I have the header files installed in /Desktop/sarvagya/project_folder/env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch. I am using pytorch in a python environment. These are the following header files:
all.h       data               jit.h  optim.h         serialize.h arg.h       data.h             nn     ordered_dict.h  torch.h autograd.h  detail             nn.h   python.h        types.h cuda.h      expanding_array.h  optim  serialize       utils.h
So I ran the code here 1 with the location to torch set to the location mentioned above. But I got the following error:
CMake Error at CMakeLists.txt:4 (find_package):
  By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Torch", but
  CMake did not find one.

  Could not find a package configuration file provided by "Torch" with any of
  the following names:

    TorchConfig.cmake
    torch-config.cmake

  Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
  "Torch_DIR" to a directory containing one of the above files.  If "Torch"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/pi/Desktop/sarvagya/cpp/dcgan/build/CMakeFiles/CMakeOutput.log".

What do you suggest I should do?