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
7b6c8999
Commit
7b6c8999
authored
Jun 06, 2019
by
guptapriya
Committed by
guptapriya
Jun 12, 2019
Browse files
set tf seed
parent
c80de2ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+4
-0
No files found.
official/recommendation/ncf_keras_main.py
View file @
7b6c8999
...
...
@@ -245,6 +245,10 @@ def _get_keras_model(params):
def
run_ncf
(
_
):
if
FLAGS
.
seed
is
not
None
:
print
(
"Setting tf seed"
)
tf
.
random
.
set_seed
(
FLAGS
.
seed
)
"""Run NCF training and eval with Keras."""
# TODO(seemuch): Support different train and eval batch sizes
if
FLAGS
.
eval_batch_size
!=
FLAGS
.
batch_size
:
...
...
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