From f41959ccb2d9d4c722fe8fc3351401d53bcf4900 Mon Sep 17 00:00:00 2001 From: Manjunath Kudlur Date: Fri, 6 Nov 2015 16:27:58 -0800 Subject: TensorFlow: Initial commit of TensorFlow library. TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108 --- tensorflow/core/graph/optimizer_cse.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tensorflow/core/graph/optimizer_cse.h (limited to 'tensorflow/core/graph/optimizer_cse.h') diff --git a/tensorflow/core/graph/optimizer_cse.h b/tensorflow/core/graph/optimizer_cse.h new file mode 100644 index 0000000000..430c97a449 --- /dev/null +++ b/tensorflow/core/graph/optimizer_cse.h @@ -0,0 +1,19 @@ +// An optimization pass that performs common subexpression elimination. + +#ifndef TENSORFLOW_GRAPH_OPTIMIZER_CSE_H_ +#define TENSORFLOW_GRAPH_OPTIMIZER_CSE_H_ + +#include +#include "tensorflow/core/graph/graph.h" + +namespace tensorflow { + +// Perform common-subexpression elimination on the graph "*g". If +// "consider_fn" is not nullptr, then only nodes for which +// consider_fn(node) returns true will be considered for combining +// during the common subexpression elimination. +extern void OptimizeCSE(Graph* g, std::function consider_fn); + +} // namespace tensorflow + +#endif // TENSORFLOW_GRAPH_OPTIMIZER_CSE_H_ -- cgit v1.2.3