Unverified Commit ea287cbf authored by Taylor Robie's avatar Taylor Robie Committed by GitHub
Browse files

make ncf dataset test less brittle (#4960)

parent e4ab5a86
...@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment