/** * Copyright (c) 2018 by Contributors * @file graph/graph_serializer.cc * @brief DGL serializer APIs */ #ifndef DGL_GRAPH_SERIALIZER_H_ #define DGL_GRAPH_SERIALIZER_H_ #include namespace dgl { // Util class to call the private/public empty constructor, which is needed for // serialization class Serializer { public: template static T* new_object() { return new T(); } template static std::shared_ptr make_shared() { return std::shared_ptr(new T()); } }; } // namespace dgl #endif // DGL_GRAPH_SERIALIZER_H_