Skip to content

Commit

Permalink
TensorFlow: fix some last python3 compatibility issues for 0.6.0.
Browse files Browse the repository at this point in the history
Change-Id: I3cd6c6e3f3c7755343213e4697c97a09f79fb947
  • Loading branch information
Vijay Vasudevan committed Dec 10, 2015
1 parent 3951b24 commit 014ff10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tensorflow/models/image/imagenet/BUILD
Expand Up @@ -10,6 +10,7 @@ py_binary(
srcs = [
"classify_image.py",
],
srcs_version = "PY2AND3",
visibility = ["//tensorflow:__subpackages__"],
deps = [
"//tensorflow:tensorflow_py",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/python/ops/gradients.py
Expand Up @@ -444,7 +444,7 @@ def gradients(ys,
op_wrapper = control_flow_ops.MakeWrapper(op)
in_grads = _AsList(grad_fn(op_wrapper, *out_grads))
_VerifyGeneratedGradients(in_grads, op)
if gate_gradients and len(filter(None, in_grads)) > 1:
if gate_gradients and len(tuple(filter(None, in_grads))) > 1:
in_grads = control_flow_ops.tuple(in_grads)
logging.vlog(1, "Gradient for '" + op.name + "'")
logging.vlog(1, " in --> %s",
Expand Down

0 comments on commit 014ff10

Please sign in to comment.