"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "edf22c052e0d91eca4687ee678b06a485f78666d"
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 @@
#define GRAPHBOLT_CSC_SAMPLING_GRAPH_H_
#include <graphbolt/sampled_subgraph.h>
#include <graphbolt/shared_memory.h>
#include <torch/torch.h>
#include <string>
#include <vector>
#include "./sampled_subgraph.h"
#include "./shared_memory.h"
namespace graphbolt {
namespace sampling {
......
......@@ -7,13 +7,12 @@
#ifndef GRAPHBOLT_SERIALIZE_H_
#define GRAPHBOLT_SERIALIZE_H_
#include <graphbolt/csc_sampling_graph.h>
#include <torch/torch.h>
#include <string>
#include <vector>
#include "csc_sampling_graph.h"
/**
* @brief Overload stream operator to enable `torch::save()` and `torch.load()`
* for CSCSamplingGraph.
......
......@@ -6,6 +6,10 @@
#include <graphbolt/csc_sampling_graph.h>
#include <graphbolt/serialize.h>
#include <torch/torch.h>
#include <tuple>
#include <vector>
#include "./shared_memory_utils.h"
......
......@@ -5,6 +5,7 @@
*/
#include <graphbolt/serialize.h>
#include <torch/torch.h>
namespace torch {
......
......@@ -8,6 +8,12 @@
#include <graphbolt/serialize.h>
#include <graphbolt/shared_memory.h>
#include <torch/torch.h>
#include <cstring>
#include <string>
#include <tuple>
#include <vector>
namespace graphbolt {
namespace sampling {
......
......@@ -13,6 +13,7 @@
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
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