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
1e295c53
Unverified
Commit
1e295c53
authored
May 19, 2023
by
czkkkkkk
Committed by
GitHub
May 19, 2023
Browse files
[Graphbolt] Move headers to include/graphbolt & add include guard (#5706)
parent
cc5c2379
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
graphbolt/include/graphbolt/compact.h
graphbolt/include/graphbolt/compact.h
+0
-0
graphbolt/include/graphbolt/csc_sampling_graph.h
graphbolt/include/graphbolt/csc_sampling_graph.h
+4
-1
graphbolt/include/graphbolt/neighbor.h
graphbolt/include/graphbolt/neighbor.h
+0
-0
graphbolt/include/graphbolt/serialize.h
graphbolt/include/graphbolt/serialize.h
+4
-4
graphbolt/src/csc_sampling_graph.cc
graphbolt/src/csc_sampling_graph.cc
+3
-4
No files found.
graphbolt/include/compact.h
→
graphbolt/include/
graphbolt/
compact.h
View file @
1e295c53
File moved
graphbolt/include/csc_sampling_graph.h
→
graphbolt/include/
graphbolt/
csc_sampling_graph.h
View file @
1e295c53
/**
/**
* Copyright (c) 2023 by Contributors
* Copyright (c) 2023 by Contributors
* @file graphbolt/
include/
csc_sampling_graph.h
* @file graphbolt/csc_sampling_graph.h
* @brief Header file of csc sampling graph.
* @brief Header file of csc sampling graph.
*/
*/
#ifndef GRAPHBOLT_CSC_SAMPLING_GRAPH_H_
#define GRAPHBOLT_CSC_SAMPLING_GRAPH_H_
#include <torch/custom_class.h>
#include <torch/custom_class.h>
#include <torch/torch.h>
#include <torch/torch.h>
...
@@ -230,3 +232,4 @@ inline serialize::OutputArchive& operator<<(
...
@@ -230,3 +232,4 @@ inline serialize::OutputArchive& operator<<(
const
graphbolt
::
sampling
::
CSCSamplingGraph
&
graph
);
const
graphbolt
::
sampling
::
CSCSamplingGraph
&
graph
);
}
// namespace torch
}
// namespace torch
#endif // GRAPHBOLT_CSC_SAMPLING_GRAPH_H_
graphbolt/include/neighbor.h
→
graphbolt/include/
graphbolt/
neighbor.h
View file @
1e295c53
File moved
graphbolt/include/serialize.h
→
graphbolt/include/
graphbolt/
serialize.h
View file @
1e295c53
/**
/**
* Copyright (c) 2023 by Contributors
* Copyright (c) 2023 by Contributors
* @file graphbolt/
include/
serialize.h
* @file graphbolt/serialize.h
* @brief Utility functions for serialize and deserialize.
* @brief Utility functions for serialize and deserialize.
*/
*/
#ifndef GRAPHBOLT_
INCLUDE_
SERIALIZE_H_
#ifndef GRAPHBOLT_SERIALIZE_H_
#define GRAPHBOLT_
INCLUDE_
SERIALIZE_H_
#define GRAPHBOLT_SERIALIZE_H_
#include <torch/torch.h>
#include <torch/torch.h>
...
@@ -142,4 +142,4 @@ void read_from_archive<std::vector<std::string>>(
...
@@ -142,4 +142,4 @@ void read_from_archive<std::vector<std::string>>(
}
// namespace utils
}
// namespace utils
}
// namespace graphbolt
}
// namespace graphbolt
#endif // GRAPHBOLT_
INCLUDE_
SERIALIZE_H_
#endif // GRAPHBOLT_SERIALIZE_H_
graphbolt/src/csc_sampling_graph.cc
View file @
1e295c53
/**
/**
* Copyright (c) 2023 by Contributors
* Copyright (c) 2023 by Contributors
* @file
graphbolt/include/
csc_sampling_graph.cc
* @file csc_sampling_graph.cc
* @brief Source file of sampling graph.
* @brief Source file of sampling graph.
*/
*/
#include "csc_sampling_graph.h"
#include <graphbolt/csc_sampling_graph.h>
#include <graphbolt/serialize.h>
#include "serialize.h"
namespace
graphbolt
{
namespace
graphbolt
{
namespace
sampling
{
namespace
sampling
{
...
...
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