Implementation of all kinds of deep models with C++