Unverified Commit c9dfafe6 authored by czkkkkkk's avatar czkkkkkk Committed by GitHub
Browse files

[Graphbolt] Avoid transitive inclusion (include what you need) (#5759)

parent a9d6f770
...@@ -7,13 +7,12 @@ ...@@ -7,13 +7,12 @@
#define GRAPHBOLT_CSC_SAMPLING_GRAPH_H_ #define GRAPHBOLT_CSC_SAMPLING_GRAPH_H_
#include <graphbolt/sampled_subgraph.h> #include <graphbolt/sampled_subgraph.h>
#include <graphbolt/shared_memory.h>
#include <torch/torch.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include "./sampled_subgraph.h"
#include "./shared_memory.h"
namespace graphbolt { namespace graphbolt {
namespace sampling { namespace sampling {
......
...@@ -7,13 +7,12 @@ ...@@ -7,13 +7,12 @@
#ifndef GRAPHBOLT_SERIALIZE_H_ #ifndef GRAPHBOLT_SERIALIZE_H_
#define GRAPHBOLT_SERIALIZE_H_ #define GRAPHBOLT_SERIALIZE_H_
#include <graphbolt/csc_sampling_graph.h>
#include <torch/torch.h> #include <torch/torch.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include "csc_sampling_graph.h"
/** /**
* @brief Overload stream operator to enable `torch::save()` and `torch.load()` * @brief Overload stream operator to enable `torch::save()` and `torch.load()`
* for CSCSamplingGraph. * for CSCSamplingGraph.
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <graphbolt/csc_sampling_graph.h> #include <graphbolt/csc_sampling_graph.h>
#include <graphbolt/serialize.h> #include <graphbolt/serialize.h>
#include <torch/torch.h>
#include <tuple>
#include <vector>
#include "./shared_memory_utils.h" #include "./shared_memory_utils.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
*/ */
#include <graphbolt/serialize.h> #include <graphbolt/serialize.h>
#include <torch/torch.h>
namespace torch { namespace torch {
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
#include <graphbolt/serialize.h> #include <graphbolt/serialize.h>
#include <graphbolt/shared_memory.h> #include <graphbolt/shared_memory.h>
#include <torch/torch.h>
#include <cstring>
#include <string>
#include <tuple>
#include <vector>
namespace graphbolt { namespace graphbolt {
namespace sampling { namespace sampling {
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <tuple>
#include <vector> #include <vector>
namespace graphbolt { namespace graphbolt {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment