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

Skip to content

Commit cb948da

Browse files
committed
Use data_dir instead of flags.FLAGS.data_dir in data_preprocessing.py.
1 parent 1980a0d commit cb948da

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
@@ -450,7 +450,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
450450
}
451451
if ncf_dataset.deterministic:
452452
flags_["seed"] = stat_utils.random_int32()
453-
tf.gfile.MakeDirs(flags.FLAGS.data_dir)
453+
tf.gfile.MakeDirs(data_dir)
454454
# We write to a temp file then atomically rename it to the final file,
455455
# because writing directly to the final file can cause the data generation
456456
# async process to read a partially written JSON file.

0 commit comments

Comments
 (0)