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
c242705b
Commit
c242705b
authored
Jul 31, 2018
by
Reed
Committed by
Taylor Robie
Jul 31, 2018
Browse files
Fix another crash on single-core systems. (#4962)
parent
c708c1b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/data_preprocessing.py
official/recommendation/data_preprocessing.py
+1
-1
No files found.
official/recommendation/data_preprocessing.py
View file @
c242705b
...
@@ -395,7 +395,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
...
@@ -395,7 +395,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
# By limiting the number of workers we guarantee that the worker
# By limiting the number of workers we guarantee that the worker
# pool underlying the training generation doesn't starve other processes.
# pool underlying the training generation doesn't starve other processes.
num_workers
=
int
(
multiprocessing
.
cpu_count
()
*
0.75
)
num_workers
=
int
(
multiprocessing
.
cpu_count
()
*
0.75
)
or
1
subproc_args
=
popen_helper
.
INVOCATION
+
[
subproc_args
=
popen_helper
.
INVOCATION
+
[
"--data_dir"
,
data_dir
,
"--data_dir"
,
data_dir
,
...
...
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