aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api_internal.h
diff options
context:
space:
mode:
authorGravatar Geoffrey Irving <geoffreyi@google.com>2017-06-29 11:44:13 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-29 11:48:10 -0700
commite85d3df92deb9d717befdf173966a2913ac2aea0 (patch)
tree1c9e80f85c965e039121d8591daab95c62fe7041 /tensorflow/c/c_api_internal.h
parent9b11f458196f6f0528c9974238497a6c8b6da547 (diff)
Prepare to remove a bunch of proto.h includes from tensorflow/core headers
The goal is to make kernels mostly independent of proto headers, which will let us lock down our .so imports. This CL does not remove any actual headers, but changes a bunch of files so that header removal is possible in a followup CL. It also marks the headers that will be removed with // TODO(b/62899350): Remove RELNOTES: n/a PiperOrigin-RevId: 160552878
Diffstat (limited to 'tensorflow/c/c_api_internal.h')
-rw-r--r--tensorflow/c/c_api_internal.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/tensorflow/c/c_api_internal.h b/tensorflow/c/c_api_internal.h
index f2773ae20f..7e987a65f7 100644
--- a/tensorflow/c/c_api_internal.h
+++ b/tensorflow/c/c_api_internal.h
@@ -56,13 +56,8 @@ struct TF_Library {
};
struct TF_Graph {
- TF_Graph()
- : graph(tensorflow::OpRegistry::Global()),
- refiner(graph.versions().producer(), graph.op_registry()),
- num_sessions(0),
- delete_requested(false),
- parent(nullptr),
- parent_inputs(nullptr) {}
+ TF_Graph();
+
tensorflow::mutex mu;
tensorflow::Graph graph GUARDED_BY(mu);