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

[Graphbolt] Move headers to include/graphbolt & add include guard (#5706)

parent cc5c2379
/** /**
* 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_
/** /**
* 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_
/** /**
* 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 {
......
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