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
ea287cbf
Unverified
Commit
ea287cbf
authored
Jul 31, 2018
by
Taylor Robie
Committed by
GitHub
Jul 31, 2018
Browse files
make ncf dataset test less brittle (#4960)
parent
e4ab5a86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/recommendation/data_test.py
official/recommendation/data_test.py
+4
-1
No files found.
official/recommendation/data_test.py
View file @
ea287cbf
...
@@ -105,7 +105,10 @@ class BaseTest(tf.test.TestCase):
...
@@ -105,7 +105,10 @@ class BaseTest(tf.test.TestCase):
batch_size
=
BATCH_SIZE
,
eval_batch_size
=
BATCH_SIZE
,
num_data_readers
=
2
,
batch_size
=
BATCH_SIZE
,
eval_batch_size
=
BATCH_SIZE
,
num_data_readers
=
2
,
num_neg
=
NUM_NEG
)
num_neg
=
NUM_NEG
)
time
.
sleep
(
5
)
# allow `alive` file to be written
for
_
in
range
(
30
):
if
tf
.
gfile
.
Exists
(
ncf_dataset
.
cache_paths
.
subproc_alive
):
break
time
.
sleep
(
1
)
# allow `alive` file to be written
g
=
tf
.
Graph
()
g
=
tf
.
Graph
()
with
g
.
as_default
():
with
g
.
as_default
():
...
...
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