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
d7aa51b4
Commit
d7aa51b4
authored
Jun 03, 2019
by
guptapriya
Committed by
guptapriya
Jun 03, 2019
Browse files
fix model by making inputs a dict
parent
95220449
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+6
-6
No files found.
official/recommendation/ncf_keras_main.py
View file @
d7aa51b4
...
@@ -225,12 +225,12 @@ def _get_keras_model(params):
...
@@ -225,12 +225,12 @@ def _get_keras_model(params):
softmax_logits
=
MetricLayer
(
params
)([
softmax_logits
,
dup_mask_input
])
softmax_logits
=
MetricLayer
(
params
)([
softmax_logits
,
dup_mask_input
])
keras_model
=
tf
.
keras
.
Model
(
keras_model
=
tf
.
keras
.
Model
(
inputs
=
[
inputs
=
{
user_input
,
movielens
.
USER_COLUMN
:
user_input
,
item_input
,
movielens
.
ITEM_COLUMN
:
item_input
,
valid_pt_mask_input
,
rconst
.
VALID_POINT_MASK
:
valid_pt_mask_input
,
dup_mask_input
,
rconst
.
DUPLICATE_MASK
:
dup_mask_input
,
label_input
]
,
rconst
.
TRAIN_LABEL_KEY
:
label_input
}
,
outputs
=
softmax_logits
)
outputs
=
softmax_logits
)
loss_obj
=
tf
.
keras
.
losses
.
SparseCategoricalCrossentropy
(
loss_obj
=
tf
.
keras
.
losses
.
SparseCategoricalCrossentropy
(
...
...
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