aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/graph_transforms/transform_utils.h
diff options
context:
space:
mode:
authorGravatar Pete Warden <petewarden@google.com>2016-11-08 17:47:43 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-08 18:03:59 -0800
commit7ea2f7d2689d9686c93650bf5bcc4c8ba459377d (patch)
tree6abadcdfd651c5f0134ac0f37bbc7901fa18ee16 /tensorflow/tools/graph_transforms/transform_utils.h
parentcadb43c37a1806dd617233fab40330927289c89a (diff)
Refactor fold_constants to make reuse easier.
Change: 138588267
Diffstat (limited to 'tensorflow/tools/graph_transforms/transform_utils.h')
-rw-r--r--tensorflow/tools/graph_transforms/transform_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/tools/graph_transforms/transform_utils.h b/tensorflow/tools/graph_transforms/transform_utils.h
index 8f6433fa34..7fb885b1ac 100644
--- a/tensorflow/tools/graph_transforms/transform_utils.h
+++ b/tensorflow/tools/graph_transforms/transform_utils.h
@@ -45,6 +45,12 @@ void FilterGraphDef(const GraphDef& input_graph_def,
std::function<bool(const NodeDef&)> selector,
GraphDef* output_graph_def);
+// Creates a copy of the input graph, with all occurences of the attributes with
+// the names in the argument removed from the node defs.
+void RemoveAttributes(const GraphDef& input_graph_def,
+ const std::vector<string>& attributes,
+ GraphDef* output_graph_def);
+
} // namespace graph_transforms
} // namespace tensorflow