File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ py_binary(
10
10
srcs = [
11
11
"classify_image.py" ,
12
12
],
13
+ srcs_version = "PY2AND3" ,
13
14
visibility = ["//tensorflow:__subpackages__" ],
14
15
deps = [
15
16
"//tensorflow:tensorflow_py" ,
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ def gradients(ys,
444
444
op_wrapper = control_flow_ops .MakeWrapper (op )
445
445
in_grads = _AsList (grad_fn (op_wrapper , * out_grads ))
446
446
_VerifyGeneratedGradients (in_grads , op )
447
- if gate_gradients and len (filter (None , in_grads )) > 1 :
447
+ if gate_gradients and len (tuple ( filter (None , in_grads ) )) > 1 :
448
448
in_grads = control_flow_ops .tuple (in_grads )
449
449
logging .vlog (1 , "Gradient for '" + op .name + "'" )
450
450
logging .vlog (1 , " in --> %s" ,
You can’t perform that action at this time.
0 commit comments