aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/compatibility
diff options
context:
space:
mode:
authorGravatar Neal Wu <wun@google.com>2017-03-17 13:52:26 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-17 15:18:31 -0700
commit0db3d5abc4aa4e6d8542ebafabf787dec71ceade (patch)
tree4a88e744132c3192e019d95dbd1c208d36e856f1 /tensorflow/tools/compatibility
parent6a9236e060f552cba5883e586d01c5edfa168b42 (diff)
Add tf.op_scope -> tf.name_scope (including argument reorder) to the TF upgrade script
Change: 150487597
Diffstat (limited to 'tensorflow/tools/compatibility')
-rw-r--r--tensorflow/tools/compatibility/tf_upgrade.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/tools/compatibility/tf_upgrade.py b/tensorflow/tools/compatibility/tf_upgrade.py
index bcff10f21d..26bf117256 100644
--- a/tensorflow/tools/compatibility/tf_upgrade.py
+++ b/tensorflow/tools/compatibility/tf_upgrade.py
@@ -148,6 +148,7 @@ class APIChangeSpec(object):
"tf.batch_matmul": "tf.matmul",
"tf.pack": "tf.stack",
"tf.unpack": "tf.unstack",
+ "tf.op_scope": "tf.name_scope",
}
self.change_to_function = {
@@ -168,7 +169,8 @@ class APIChangeSpec(object):
"tf.nn.sparse_softmax_cross_entropy_with_logits": [
"logits", "labels", "name"],
"tf.nn.sigmoid_cross_entropy_with_logits": [
- "logits", "labels", "name"]
+ "logits", "labels", "name"],
+ "tf.op_scope": ["values", "name", "default_name"],
}
# Specially handled functions.