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
dcd76d49
You need to sign in or sign up before continuing.
Commit
dcd76d49
authored
Jun 05, 2019
by
guptapriya
Committed by
guptapriya
Jun 04, 2019
Browse files
Add the per epoch callback back
parent
dbdf712e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+2
-1
No files found.
official/recommendation/ncf_keras_main.py
View file @
dcd76d49
...
@@ -284,7 +284,8 @@ def run_ncf(_):
...
@@ -284,7 +284,8 @@ def run_ncf(_):
eval_input_dataset
=
eval_input_dataset
.
batch
(
batches_per_step
)
eval_input_dataset
=
eval_input_dataset
.
batch
(
batches_per_step
)
time_callback
=
keras_utils
.
TimeHistory
(
batch_size
,
FLAGS
.
log_steps
)
time_callback
=
keras_utils
.
TimeHistory
(
batch_size
,
FLAGS
.
log_steps
)
callbacks
=
[
time_callback
]
per_epoch_callback
=
IncrementEpochCallback
(
producer
)
callbacks
=
[
per_epoch_callback
,
time_callback
]
if
FLAGS
.
early_stopping
:
if
FLAGS
.
early_stopping
:
early_stopping_callback
=
CustomEarlyStopping
(
early_stopping_callback
=
CustomEarlyStopping
(
...
...
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