aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/toco/dump_graphviz.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-01-23 12:24:21 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-23 12:28:02 -0800
commitba4aec48268d02f111cd7e2c2666f4e7b077e68a (patch)
treeb5b2e456b9499cc460381bdb471e864b8b889dfa /tensorflow/contrib/lite/toco/dump_graphviz.cc
parentb47119257b76bdec542121aaed056c8b010fd19f (diff)
Internal Change
PiperOrigin-RevId: 182974191
Diffstat (limited to 'tensorflow/contrib/lite/toco/dump_graphviz.cc')
-rw-r--r--tensorflow/contrib/lite/toco/dump_graphviz.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/toco/dump_graphviz.cc b/tensorflow/contrib/lite/toco/dump_graphviz.cc
index 39809216c7..c726eb6d86 100644
--- a/tensorflow/contrib/lite/toco/dump_graphviz.cc
+++ b/tensorflow/contrib/lite/toco/dump_graphviz.cc
@@ -278,8 +278,8 @@ std::vector<const Operator*> OperatorsToDump(const Model& model) {
if (last_specified) {
// Return only the part of the graph between graphviz_first_array
// and graphviz_last_array.
- CHECK(model.arrays.count(dump_options.graphviz_first_array));
- CHECK(model.arrays.count(dump_options.graphviz_last_array));
+ CHECK(model.HasArray(dump_options.graphviz_first_array));
+ CHECK(model.HasArray(dump_options.graphviz_last_array));
std::unordered_set<string> arrays_already_produced;
std::vector<string> arrays_to_produce;
arrays_to_produce.push_back(dump_options.graphviz_last_array);
@@ -336,7 +336,7 @@ void DumpGraphviz(const Model& model, string* output_file_contents) {
op_properties.color.TextColorString().c_str());
// Add nodes and edges for all inputs of the operator.
for (const auto& input : op.inputs) {
- if (model.arrays.count(input) == 0) {
+ if (!model.HasArray(input)) {
// Arrays should _always_ exist. Except, perhaps, during development.
continue;
}
@@ -352,7 +352,7 @@ void DumpGraphviz(const Model& model, string* output_file_contents) {
}
// Add nodes and edges for all outputs of the operator.
for (const auto& output : op.outputs) {
- if (model.arrays.count(output) == 0) {
+ if (!model.HasArray(output)) {
// Arrays should _always_ exist. Except, perhaps, during development.
continue;
}