Skip to content

Minimal Example: 'torch/torch.h' file not found #12

Open
@d84-n1nj4

Description

Hi, apologies if this is not an issue. I walked through the "Minimal Example" for Installing c++ Distributions of PyTorch, and I get through it with no issues. However, when I create the example-app.cpp file, clang throws an error 'torch/torch.h' file not found [clang: pp_file_not_found] (while in neovim) and this causes other issues in the file since it's not reading the next line #include <iostream>. Do I need to place libtorch somewhere within the project or somewhere else for it to be recognized by clang?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions