Quession about including torch/extension

Hi, I’m trying to create a custom c++ extension but get stuck with #include < torch/extension.h > with the error:

interrpolation.cpp:1:29: fatal error: torch/extension.h: No such file or directory
 #include <torch/extension.h>
                             ^
compilation terminated.

I’m just wondering that torch can been detected just like below:


And I also input the correct includePath in c_cpp_properties.json like below:

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",
                "C:/Users/USER/anaconda3/envs/cppcuda/Lib/site-packages/torch/include",
                "C:/Users/USER/anaconda3/envs/cppcuda/Lib/site-packages/torch/include/torch/csrc/api/include",
                "C:/Users/USER/anaconda3/envs/cppcuda/Lib/site-packages/torch/include"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "windowsSdkVersion": "10.0.22621.0",
            "cStandard": "c17",
            "cppStandard": "c++14",
            "intelliSenseMode": "windows-msvc-x64"
        }
    ],
    "version": 4
}

But somehow torch/extension can’t be included.
Any guidance is much appreciated, thank you.