Solved by oni in post #2 
              
              
                Hi All, 
after changing “c++14” to “c++17” in all occurrences within /usr/lib/cmake/Caffe2/*.cmake, i can compile and run code successfully in C++17 mode. 
It seems that the libtorch code base is already prepared for C++17, its just the compatibility w.r.t the CUDA env. which has to be maintained. I…