Skip to content

Commit

Permalink
Merge pull request tensorflow#36 from argszero/patch-1
Browse files Browse the repository at this point in the history
Using a `tf.Tensor` as a Python `bool` is not allowed
  • Loading branch information
sguada committed Apr 1, 2016
2 parents 1493624 + 851f28a commit 3000453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inception/inception/inception_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def train(dataset):

# Add histograms for gradients.
for grad, var in grads:
if grad:
if grad is not None:
summaries.append(
tf.histogram_summary(var.op.name + '/gradients', grad))

Expand Down

0 comments on commit 3000453

Please sign in to comment.