:gitee_url: https://gitee.com/mindspore/docs .. _program_listing_file_include_graph.h: Program Listing for File graph.h ================================ |exhale_lsh| :ref:`Return to documentation for file ` (``include/graph.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef MINDSPORE_INCLUDE_API_GRAPH_H #define MINDSPORE_INCLUDE_API_GRAPH_H #include #include #include #include #include "include/api/status.h" #include "include/api/types.h" namespace mindspore { class Graph { public: class GraphData; Graph(); explicit Graph(const std::shared_ptr &graph_data); explicit Graph(std::shared_ptr &&graph_data); explicit Graph(std::nullptr_t); ~Graph(); enum ModelType ModelType() const; bool operator==(std::nullptr_t) const; bool operator!=(std::nullptr_t) const; private: friend class GraphCell; friend class ModelImpl; std::shared_ptr graph_data_; }; } // namespace mindspore #endif // MINDSPORE_INCLUDE_API_GRAPH_H