Solved by Shisho_Sama in post #2 
              
              
                I also found this which says where we can change this in cmake  : 
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0")
endif()

for me though I had to change the /cmake/TorchConfig.cmake.in which is : 
# When we build libtorch with the old GCC ABI, depe…