14 #ifndef TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ 15 #define TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ 17 #include "tensorflow/core/framework/op.h" 18 #include "tensorflow/core/lib/core/status.h" 24 string SummarizeGraphDef(
const GraphDef& graph_def);
37 Status ValidateExternalGraphDefSyntax(
const GraphDef& graph_def);
48 const OpRegistryInterface& op_registry,
53 const OpRegistryInterface& op_registry,
54 int node_offset,
bool skip_unknown_ops);
85 Status RemoveNewDefaultAttrsFromGraphDef(
86 GraphDef* graph_def,
const OpRegistryInterface& consumer_op_registry,
87 const OpRegistryInterface& producer_op_registry,
88 std::set<std::pair<string, string>>* op_attr_removed);
92 void OpsUsedByGraph(
const GraphDef& graph_def,
93 std::set<string>* ops_used_in_graph);
103 Status StrippedOpListForGraph(
const GraphDef& graph_def,
104 const OpRegistryInterface& op_registry,
105 OpList* stripped_op_list);
107 #endif // TENSORFLOW_FRAMEWORK_GRAPH_DEF_UTIL_H_ Status AddDefaultAttrsToGraphDef(GraphDef *graph_def, const OpRegistryInterface &op_registry, int node_offset)
Assign each NodeDefs of GraphDef default values.
Definition: graph_def_util.cc:61
Definition: compile.cc:35