aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/i_remote_fused_graph_executor.h
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-07-18 15:20:03 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-18 15:23:57 -0700
commitd5f4d9bbac520ad9eae6614fe678e9d1568435a4 (patch)
tree4d0e5115006e12127650b4f97d9b34942938abf3 /tensorflow/core/kernels/i_remote_fused_graph_executor.h
parentd8672f1839df67f765baaa34a4c806ee1d433842 (diff)
Add a way to fuse a graph by remote graph executor so that users don't need to be aware of supported op types, node names, subgraph stracture etc.
PiperOrigin-RevId: 162411763
Diffstat (limited to 'tensorflow/core/kernels/i_remote_fused_graph_executor.h')
-rw-r--r--tensorflow/core/kernels/i_remote_fused_graph_executor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/i_remote_fused_graph_executor.h b/tensorflow/core/kernels/i_remote_fused_graph_executor.h
index 09d1f43ff1..05b76172b2 100644
--- a/tensorflow/core/kernels/i_remote_fused_graph_executor.h
+++ b/tensorflow/core/kernels/i_remote_fused_graph_executor.h
@@ -59,6 +59,13 @@ class IRemoteFusedGraphExecutor {
virtual bool ReadOutputNode(const string& node_name,
TensorAllocatorFunc tensor_allocator) = 0;
+ virtual Status FuseRemoteGraph(const GraphDef& original_graph_def,
+ const std::vector<string>& inputs,
+ const std::vector<string>& outputs,
+ GraphDef* fused_graph_def) = 0;
+
+ virtual bool IsEnabled() const = 0;
+
private:
TF_DISALLOW_COPY_AND_ASSIGN(IRemoteFusedGraphExecutor);
};