aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/tools
diff options
context:
space:
mode:
authorGravatar Nupur Garg <nupurgarg@google.com>2018-08-16 11:07:17 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-16 11:44:20 -0700
commit09e272a6a5c3359b671a068f4dac2bca8b312358 (patch)
tree20ebbe3c58c39f386d7e1f6f1506a90a28c4fa56 /tensorflow/python/tools
parentdc6b525090e29d25fcd42cee24a086cb00c39515 (diff)
Renamed function in freeze_graph.py.
PiperOrigin-RevId: 209013414
Diffstat (limited to 'tensorflow/python/tools')
-rw-r--r--tensorflow/python/tools/freeze_graph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/tools/freeze_graph.py b/tensorflow/python/tools/freeze_graph.py
index acf070075e..c7f414c5dc 100644
--- a/tensorflow/python/tools/freeze_graph.py
+++ b/tensorflow/python/tools/freeze_graph.py
@@ -59,7 +59,7 @@ from tensorflow.python.training import checkpoint_management
from tensorflow.python.training import saver as saver_lib
-def _has_variables(sess):
+def _has_no_variables(sess):
"""Determines if the graph has any variables.
Args:
@@ -168,7 +168,7 @@ def freeze_graph_with_def_protos(input_graph_def,
"the flag --input_saved_model_dir.")
return -1
# Models that have been frozen previously do not contain Variables.
- elif _has_variables(sess):
+ elif _has_no_variables(sess):
print("No variables were found in this model. It is likely the model "
"was frozen previously. You cannot freeze a graph twice.")
return 0