diff options
author | 2015-11-06 16:27:58 -0800 | |
---|---|---|
committer | 2015-11-06 16:27:58 -0800 | |
commit | f41959ccb2d9d4c722fe8fc3351401d53bcf4900 (patch) | |
tree | ef0ca22cb2a5ac4bdec9d080d8e0788a53ed496d /tensorflow/core/graph/optimizer_cse.h |
TensorFlow: Initial commit of TensorFlow library.
TensorFlow is an open source software library for numerical computation
using data flow graphs.
Base CL: 107276108
Diffstat (limited to 'tensorflow/core/graph/optimizer_cse.h')
-rw-r--r-- | tensorflow/core/graph/optimizer_cse.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <sys/types.h> +#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<bool(const Node*)> consider_fn); + +} // namespace tensorflow + +#endif // TENSORFLOW_GRAPH_OPTIMIZER_CSE_H_ |