Solved by ptrblck in post #2 
              
              
                Your custom extension seems to have trouble here: 
/home/hatem/Projects/pytorch_cpp/custom_conv/cpp_bind/conv-extension/conv_cpp_bind.cpp: At global scope:
/home/hatem/Projects/pytorch_cpp/custom_conv/cpp_bind/conv-extension/conv_cpp_bind.cpp:74:16: error: expected constructor, destructor, or type c…