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
9057a3a1
Unverified
Commit
9057a3a1
authored
Jun 08, 2018
by
Yanhui Liang
Committed by
GitHub
Jun 08, 2018
Browse files
Update optimizer (#4491)
parent
9bf9a837
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
official/recommendation/ncf_main.py
official/recommendation/ncf_main.py
+1
-2
No files found.
official/recommendation/ncf_main.py
View file @
9057a3a1
...
@@ -146,8 +146,7 @@ def convert_keras_to_estimator(keras_model, num_gpus, model_dir):
...
@@ -146,8 +146,7 @@ def convert_keras_to_estimator(keras_model, num_gpus, model_dir):
Returns:
Returns:
est_model: The converted Estimator.
est_model: The converted Estimator.
"""
"""
# TODO(b/79866338): update GradientDescentOptimizer with AdamOptimizer
optimizer
=
tf
.
train
.
AdamOptimizer
(
optimizer
=
tf
.
train
.
GradientDescentOptimizer
(
learning_rate
=
FLAGS
.
learning_rate
)
learning_rate
=
FLAGS
.
learning_rate
)
keras_model
.
compile
(
optimizer
=
optimizer
,
loss
=
"binary_crossentropy"
)
keras_model
.
compile
(
optimizer
=
optimizer
,
loss
=
"binary_crossentropy"
)
...
...
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