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
32974988
Commit
32974988
authored
Sep 05, 2019
by
David Chen
Committed by
A. Unique TensorFlower
Sep 05, 2019
Browse files
Internal change
PiperOrigin-RevId: 267486140
parent
4bd15fa6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+4
-1
No files found.
official/recommendation/ncf_keras_main.py
View file @
32974988
...
...
@@ -254,7 +254,10 @@ def run_ncf(_):
"val_HR_METRIC"
,
desired_value
=
FLAGS
.
hr_threshold
)
callbacks
.
append
(
early_stopping_callback
)
with
tf
.
device
(
tpu_lib
.
get_primary_cpu_task
(
params
[
"use_tpu"
])):
use_remote_tpu
=
params
[
"use_tpu"
]
and
FLAGS
.
tpu
primary_cpu_task
=
tpu_lib
.
get_primary_cpu_task
(
use_remote_tpu
)
with
tf
.
device
(
primary_cpu_task
):
(
train_input_dataset
,
eval_input_dataset
,
num_train_steps
,
num_eval_steps
)
=
\
(
ncf_input_pipeline
.
create_ncf_input_data
(
...
...
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