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
92d751b4
Commit
92d751b4
authored
Mar 18, 2017
by
robrao
Committed by
Neal Wu
Mar 20, 2017
Browse files
correct tf.summary.scalar illegal name `learning rate`
parent
ceed1a31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
resnet/resnet_model.py
resnet/resnet_model.py
+1
-1
No files found.
resnet/resnet_model.py
View file @
92d751b4
...
...
@@ -128,7 +128,7 @@ class ResNet(object):
def
_build_train_op
(
self
):
"""Build training specific ops for the graph."""
self
.
lrn_rate
=
tf
.
constant
(
self
.
hps
.
lrn_rate
,
tf
.
float32
)
tf
.
summary
.
scalar
(
'learning
rate'
,
self
.
lrn_rate
)
tf
.
summary
.
scalar
(
'learning
_
rate'
,
self
.
lrn_rate
)
trainable_variables
=
tf
.
trainable_variables
()
grads
=
tf
.
gradients
(
self
.
cost
,
trainable_variables
)
...
...
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