Solved by tazz in post #2 
              
              
                There seems to be an issue when you try to compile it with GCC I was able to pass the following flags when passing the cmake commands and able to compile it 
cmake -DCMAKE_PREFIX_PATH=$PWD/…/libtorch -DCMAKE_C_COMPILER="/usr/bin/clang" -DCMAKE_CXX_COMPILER="/usr/bin/clang++" … -Wno-dev 
Can someone …