Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
c9dfafe6
Unverified
Commit
c9dfafe6
authored
Jun 01, 2023
by
czkkkkkk
Committed by
GitHub
Jun 01, 2023
Browse files
[Graphbolt] Avoid transitive inclusion (include what you need) (#5759)
parent
a9d6f770
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
5 deletions
+15
-5
graphbolt/include/graphbolt/csc_sampling_graph.h
graphbolt/include/graphbolt/csc_sampling_graph.h
+2
-3
graphbolt/include/graphbolt/serialize.h
graphbolt/include/graphbolt/serialize.h
+1
-2
graphbolt/src/csc_sampling_graph.cc
graphbolt/src/csc_sampling_graph.cc
+4
-0
graphbolt/src/serialize.cc
graphbolt/src/serialize.cc
+1
-0
graphbolt/src/shared_memory_utils.cc
graphbolt/src/shared_memory_utils.cc
+6
-0
graphbolt/src/shared_memory_utils.h
graphbolt/src/shared_memory_utils.h
+1
-0
No files found.
graphbolt/include/graphbolt/csc_sampling_graph.h
View file @
c9dfafe6
...
@@ -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
{
...
...
graphbolt/include/graphbolt/serialize.h
View file @
c9dfafe6
...
@@ -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.
...
...
graphbolt/src/csc_sampling_graph.cc
View file @
c9dfafe6
...
@@ -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"
...
...
graphbolt/src/serialize.cc
View file @
c9dfafe6
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
*/
*/
#include <graphbolt/serialize.h>
#include <graphbolt/serialize.h>
#include <torch/torch.h>
namespace
torch
{
namespace
torch
{
...
...
graphbolt/src/shared_memory_utils.cc
View file @
c9dfafe6
...
@@ -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
{
...
...
graphbolt/src/shared_memory_utils.h
View file @
c9dfafe6
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment