Skip to content

Commit 20c65a0

Browse files
committed
Use more consistent naming
The project is cpp-graph-autodiff, the namespace is graph_autodiff.
1 parent f1ef947 commit 20c65a0

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module(name = "compute-graph-autodiff", version = "0.1")
1+
module(name = "cpp-graph-autodiff", version = "0.1")
22

33
bazel_dep(name = "abseil-cpp", version = "20230802.0")
44
bazel_dep(name = "eigen", version = "3.4.0")

src/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@rules_proto//proto:defs.bzl", "proto_library")
22

33
cc_library(
4-
name = "compute_graph_ad",
4+
name = "graph_autodiff",
55
srcs = ["graph.cpp"],
66
hdrs = ["graph.h"],
77
deps = [

src/graph.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ under certain conditions: see LICENSE.
1616
#include "fmt/core.h"
1717
#include "src/graph.pb.h"
1818

19-
using namespace compute_graph_ad;
19+
using namespace graph_autodiff;
2020
namespace gpb = graph_proto;
2121

2222
namespace {
@@ -217,7 +217,7 @@ Graph Graph::from_proto(const gpb::Graph& gproto) noexcept {
217217
return Graph(op_from_proto(gproto));
218218
}
219219

220-
absl::Status compute_graph_ad::to_file(const Graph& graph, fs::path path) {
220+
absl::Status graph_autodiff::to_file(const Graph& graph, fs::path path) {
221221
absl::Status ret_status = absl::OkStatus();
222222

223223
GOOGLE_PROTOBUF_VERIFY_VERSION;
@@ -240,7 +240,7 @@ absl::Status compute_graph_ad::to_file(const Graph& graph, fs::path path) {
240240
return ret_status;
241241
}
242242

243-
absl::StatusOr<Graph> compute_graph_ad::from_file(fs::path path) {
243+
absl::StatusOr<Graph> graph_autodiff::from_file(fs::path path) {
244244
GOOGLE_PROTOBUF_VERIFY_VERSION;
245245

246246
gpb::Graph gproto;

src/graph.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ under certain conditions: see LICENSE.
2929
operations, so shared ownership is actually a good fit
3030
*/
3131

32-
namespace compute_graph_ad {
32+
namespace graph_autodiff {
3333

3434
namespace gpb = graph_proto;
3535

tests/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ cc_test(
55
deps = [
66
"@abseil-cpp//absl/status:statusor",
77
"@googletest//:gtest_main",
8-
"//src:compute_graph_ad"
8+
"//src:graph_autodiff"
99
],
1010
)

tests/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "absl/status/statusor.h"
44
#include "src/graph.h"
55

6-
using namespace compute_graph_ad;
6+
using namespace graph_autodiff;
77

88
TEST(Graph, SumEval) {
99
const Const c(2.);

0 commit comments

Comments
 (0)