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
a179b7fe
Commit
a179b7fe
authored
Apr 25, 2020
by
A. Unique TensorFlower
Browse files
Merge pull request #8436 from ayushmankumar7:name
PiperOrigin-RevId: 308469410
parents
2c6f12e3
81ac90c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
official/vision/image_classification/resnet/common.py
official/vision/image_classification/resnet/common.py
+1
-4
No files found.
official/vision/image_classification/resnet/common.py
View file @
a179b7fe
...
...
@@ -76,10 +76,7 @@ class PiecewiseConstantDecayWithWarmup(
def
_get_learning_rate
(
self
,
step
):
"""Compute learning rate at given step."""
with
tf
.
compat
.
v1
.
name_scope
(
self
.
name
,
'PiecewiseConstantDecayWithWarmup'
,
[
self
.
rescaled_lr
,
self
.
step_boundaries
,
self
.
lr_values
,
self
.
warmup_steps
,
self
.
compute_lr_on_cpu
]):
with
tf
.
name_scope
(
'PiecewiseConstantDecayWithWarmup'
):
def
warmup_lr
(
step
):
return
self
.
rescaled_lr
*
(
tf
.
cast
(
step
,
tf
.
float32
)
/
tf
.
cast
(
self
.
warmup_steps
,
tf
.
float32
))
...
...
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