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
cac293d6
Commit
cac293d6
authored
Oct 04, 2021
by
Vishnu Banna
Browse files
addressing ocmments
parent
671268c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
21 deletions
+18
-21
official/vision/beta/projects/yolo/optimization/sgd_torch.py
official/vision/beta/projects/yolo/optimization/sgd_torch.py
+18
-21
No files found.
official/vision/beta/projects/yolo/optimization/sgd_torch.py
View file @
cac293d6
from
tensorflow.python.framework
import
ops
from
tensorflow.python.ops
import
array_ops
from
tensorflow.keras.optimizers.schedules
import
LearningRateSchedule
from
tensorflow.python.training
import
gen_training_ops
import
tensorflow
as
tf
import
re
import
logging
try
:
from
keras.optimizer_v2.optimizer_v2
import
_var_key
except
:
def
_var_key
(
var
):
def
_var_key
(
var
):
"""Key for representing a primary variable, for looking up slots.
In graph mode the name is derived from the var shared name.
In eager mode the name is derived from the var unique id.
...
...
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