Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5f6c66

Browse files
committed
Use data_dir instead of flags.FLAGS.data_dir in data_preprocessing.py.
1 parent f70898a commit d5f6c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/recommendation/data_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
474474
# We write to a temp file then atomically rename it to the final file,
475475
# because writing directly to the final file can cause the data generation
476476
# async process to read a partially written JSON file.
477-
flagfile_temp = os.path.join(flags.FLAGS.data_dir, rconst.FLAGFILE_TEMP)
477+
flagfile_temp = os.path.join(data_dir, rconst.FLAGFILE_TEMP)
478478
tf.logging.info("Preparing flagfile for async data generation in {} ..."
479479
.format(flagfile_temp))
480480
with tf.gfile.Open(flagfile_temp, "w") as f:

0 commit comments

Comments
 (0)