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
3ab9ed81
Commit
3ab9ed81
authored
Mar 15, 2020
by
ayushmankumar7
Browse files
reverted back to tf1.15
parent
62abe403
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
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
No files found.
official/r1/mnist/mnist.py
View file @
3ab9ed81
...
...
@@ -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
.
keras
.
o
ptimizer
s
.
Adam
(
learning_rate
=
LEARNING_RATE
)
optimizer
=
tf
.
compat
.
v1
.
train
.
AdamO
ptimizer
(
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 @
3ab9ed81
...
...
@@ -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
.
keras
.
o
ptimizer
s
.
Adam
(),
optimizer
=
tf
.
compat
.
v1
.
train
.
AdamO
ptimizer
(),
activation_fn
=
tf
.
nn
.
sigmoid
,
dropout
=
0.3
,
loss_reduction
=
tf
.
losses
.
Reduction
.
MEAN
)
...
...
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