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
62abe403
Commit
62abe403
authored
Mar 15, 2020
by
ayushmankumar7
Browse files
AdamOptimizer() to Adam()
parent
1e2ceffd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
official/r1/mnist/mnist.py
official/r1/mnist/mnist.py
+1
-1
official/r1/wide_deep/movielens_main.py
official/r1/wide_deep/movielens_main.py
+1
-1
official/recommendation/neumf_model.py
official/recommendation/neumf_model.py
+1
-1
No files found.
official/r1/mnist/mnist.py
View file @
62abe403
...
...
@@ -125,7 +125,7 @@ def model_fn(features, labels, mode, params):
'classify'
:
tf
.
estimator
.
export
.
PredictOutput
(
predictions
)
})
if
mode
==
tf
.
estimator
.
ModeKeys
.
TRAIN
:
optimizer
=
tf
.
compat
.
v1
.
train
.
AdamO
ptimizer
(
learning_rate
=
LEARNING_RATE
)
optimizer
=
tf
.
keras
.
o
ptimizer
s
.
Adam
(
learning_rate
=
LEARNING_RATE
)
logits
=
model
(
image
,
training
=
True
)
loss
=
tf
.
compat
.
v1
.
losses
.
sparse_softmax_cross_entropy
(
labels
=
labels
,
...
...
official/r1/wide_deep/movielens_main.py
View file @
62abe403
...
...
@@ -69,7 +69,7 @@ def build_estimator(model_dir, model_type, model_column_fn, inter_op, intra_op):
model_dir
=
model_dir
,
feature_columns
=
deep_columns
,
hidden_units
=
hidden_units
,
optimizer
=
tf
.
train
.
AdamO
ptimizer
(),
optimizer
=
tf
.
keras
.
o
ptimizer
s
.
Adam
(),
activation_fn
=
tf
.
nn
.
sigmoid
,
dropout
=
0.3
,
loss_reduction
=
tf
.
losses
.
Reduction
.
MEAN
)
...
...
official/recommendation/neumf_model.py
View file @
62abe403
...
...
@@ -109,7 +109,7 @@ def neumf_model_fn(features, labels, mode, params):
mlperf_helper
.
ncf_print
(
key
=
mlperf_helper
.
TAGS
.
OPT_HP_ADAM_EPSILON
,
value
=
params
[
"epsilon"
])
optimizer
=
tf
.
compat
.
v1
.
train
.
AdamO
ptimizer
(
optimizer
=
tf
.
keras
.
o
ptimizer
s
.
Adam
(
learning_rate
=
params
[
"learning_rate"
],
beta1
=
params
[
"beta1"
],
beta2
=
params
[
"beta2"
],
...
...
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