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/framework/graph_def_util.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/framework/graph_def_util.h')
-rw-r--r-- | tensorflow/core/framework/graph_def_util.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tensorflow/core/framework/graph_def_util.h b/tensorflow/core/framework/graph_def_util.h new file mode 100644 index 0000000000..7a2ec9c7a7 --- /dev/null +++ b/tensorflow/core/framework/graph_def_util.h @@ -0,0 +1,29 @@ +#ifndef TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ +#define TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ + +#include "tensorflow/core/framework/graph.pb.h" +#include "tensorflow/core/public/status.h" + +namespace tensorflow { + +// Produce a human-readable version of a GraphDef that is more concise +// than a text-format proto. +string SummarizeGraphDef(const GraphDef& graph_def); + +// Validates the syntax of a GraphDef provided externally. +// +// The following is an EBNF-style syntax for GraphDef objects. Note that +// Node objects are actually specified as tensorflow::NodeDef protocol buffers, +// which contain many other fields that are not (currently) validated. +// +// Graph = Node * +// Node = NodeName, Inputs +// Inputs = ( DataInput * ), ( ControlInput * ) +// DataInput = NodeName, ( ":", [1-9], [0-9] * ) ? +// ControlInput = "^", NodeName +// NodeName = [A-Za-z0-9.], [A-Za-z0-9_./] * +Status ValidateExternalGraphDefSyntax(const GraphDef& graph_def); + +} // namespace tensorflow + +#endif // TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ |