diff options
author | 2018-01-26 14:57:03 -0800 | |
---|---|---|
committer | 2018-01-26 15:16:20 -0800 | |
commit | b9494ce8990cab65a20f3d5110f4c2c4402342be (patch) | |
tree | 34fd5e62b5ecb48e1bdb038230fea50512430c80 /tensorflow/tools/graph_transforms | |
parent | 8ce4986d26f904ccc6e7d5291883931571dc2713 (diff) |
Remove dead code
PiperOrigin-RevId: 183450369
Diffstat (limited to 'tensorflow/tools/graph_transforms')
-rw-r--r-- | tensorflow/tools/graph_transforms/quantize_nodes.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tensorflow/tools/graph_transforms/quantize_nodes.cc b/tensorflow/tools/graph_transforms/quantize_nodes.cc index 5ccd88cfa1..a022f57926 100644 --- a/tensorflow/tools/graph_transforms/quantize_nodes.cc +++ b/tensorflow/tools/graph_transforms/quantize_nodes.cc @@ -183,22 +183,6 @@ Status ExtractRangeFromParams(const TransformFuncContext& context, return Status::OK(); } -bool AreAttrsEqual(const NodeDef* current_node, const NodeDef* other_node) { - if (current_node->attr_size() != other_node->attr_size()) { - return false; - } - string current_serialized; - string other_serialized; - for (const auto& attr : other_node->attr()) { - auto iter = current_node->attr().find(attr.first); - if (iter == current_node->attr().end()) return false; - iter->second.SerializeToString(¤t_serialized); - attr.second.SerializeToString(&other_serialized); - if (current_serialized != other_serialized) return false; - } - return true; -} - } // namespace // Analyzes all the nodes in the graph to figure out which ones are duplicates |