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
60cbe4e4
Commit
60cbe4e4
authored
Apr 25, 2020
by
ayushmankumar7
Browse files
compat.v1.name_scope to tf.name_scope
parent
965cc3ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/vision/image_classification/resnet/common.py
official/vision/image_classification/resnet/common.py
+1
-1
No files found.
official/vision/image_classification/resnet/common.py
View file @
60cbe4e4
...
@@ -76,7 +76,7 @@ class PiecewiseConstantDecayWithWarmup(
...
@@ -76,7 +76,7 @@ class PiecewiseConstantDecayWithWarmup(
def
_get_learning_rate
(
self
,
step
):
def
_get_learning_rate
(
self
,
step
):
"""Compute learning rate at given step."""
"""Compute learning rate at given step."""
with
tf
.
compat
.
v1
.
name_scope
(
self
.
name
,
'PiecewiseConstantDecayWithWarmup'
,
with
tf
.
name_scope
(
self
.
name
,
'PiecewiseConstantDecayWithWarmup'
,
[
self
.
rescaled_lr
,
self
.
step_boundaries
,
[
self
.
rescaled_lr
,
self
.
step_boundaries
,
self
.
lr_values
,
self
.
warmup_steps
,
self
.
lr_values
,
self
.
warmup_steps
,
self
.
compute_lr_on_cpu
]):
self
.
compute_lr_on_cpu
]):
...
...
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