Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit 86ae6c5

Browse files
author
Ryan Sepassi
committed
Make default num processes for multiprocessing problems None to use number of processes=cpu_count.
PiperOrigin-RevId: 193595891
1 parent fb5acce commit 86ae6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/bin/t2t_datagen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
flags.DEFINE_integer("task_id_start", -1, "For distributed data generation.")
7171
flags.DEFINE_integer("task_id_end", -1, "For distributed data generation.")
7272
flags.DEFINE_integer(
73-
"num_concurrent_processes", 10,
73+
"num_concurrent_processes", None,
7474
"Applies only to problems for which multiprocess_generate=True.")
7575
flags.DEFINE_string("t2t_usr_dir", "",
7676
"Path to a Python module that will be imported. The "

0 commit comments

Comments
 (0)