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
8f6e2547
Commit
8f6e2547
authored
Jun 11, 2019
by
guptapriya
Committed by
guptapriya
Jun 12, 2019
Browse files
use tf.keras.losses instead of tf.losses
parent
6da769b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+1
-1
No files found.
official/recommendation/ncf_keras_main.py
View file @
8f6e2547
...
@@ -309,7 +309,7 @@ def run_ncf(_):
...
@@ -309,7 +309,7 @@ def run_ncf(_):
epsilon
=
params
[
"epsilon"
])
epsilon
=
params
[
"epsilon"
])
if
params
[
"keras_use_ctl"
]:
if
params
[
"keras_use_ctl"
]:
loss_object
=
tf
.
losses
.
SparseCategoricalCrossentropy
(
loss_object
=
tf
.
keras
.
losses
.
SparseCategoricalCrossentropy
(
reduction
=
tf
.
keras
.
losses
.
Reduction
.
SUM
,
reduction
=
tf
.
keras
.
losses
.
Reduction
.
SUM
,
from_logits
=
True
)
from_logits
=
True
)
train_input_iterator
=
strategy
.
make_dataset_iterator
(
train_input_dataset
)
train_input_iterator
=
strategy
.
make_dataset_iterator
(
train_input_dataset
)
...
...
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