Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
30004531
Commit
30004531
authored
Mar 31, 2016
by
Sergio Guadarrama
Browse files
Merge pull request #36 from argszero/patch-1
Using a `tf.Tensor` as a Python `bool` is not allowed
parents
1493624e
851f28a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
inception/inception/inception_train.py
inception/inception/inception_train.py
+1
-1
No files found.
inception/inception/inception_train.py
View file @
30004531
...
@@ -266,7 +266,7 @@ def train(dataset):
...
@@ -266,7 +266,7 @@ def train(dataset):
# Add histograms for gradients.
# Add histograms for gradients.
for
grad
,
var
in
grads
:
for
grad
,
var
in
grads
:
if
grad
:
if
grad
is
not
None
:
summaries
.
append
(
summaries
.
append
(
tf
.
histogram_summary
(
var
.
op
.
name
+
'/gradients'
,
grad
))
tf
.
histogram_summary
(
var
.
op
.
name
+
'/gradients'
,
grad
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment