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
ece8deb6
Unverified
Commit
ece8deb6
authored
Apr 04, 2019
by
Haoyu Zhang
Committed by
GitHub
Apr 04, 2019
Browse files
Set default GPU private threads to 2 per device (#6524)
This should give better performance in tweaked benchmarks.
parent
17e923da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/keras/keras_common.py
official/resnet/keras/keras_common.py
+1
-1
No files found.
official/resnet/keras/keras_common.py
View file @
ece8deb6
...
...
@@ -115,7 +115,7 @@ def set_gpu_thread_mode_and_count(flags_obj):
tf
.
compat
.
v1
.
logging
.
info
(
'Logical CPU cores: %s'
,
cpu_count
)
# Allocate private thread pool for each GPU to schedule and launch kernels
per_gpu_thread_count
=
flags_obj
.
per_gpu_thread_count
or
1
per_gpu_thread_count
=
flags_obj
.
per_gpu_thread_count
or
2
os
.
environ
[
'TF_GPU_THREAD_MODE'
]
=
flags_obj
.
tf_gpu_thread_mode
os
.
environ
[
'TF_GPU_THREAD_COUNT'
]
=
str
(
per_gpu_thread_count
)
tf
.
compat
.
v1
.
logging
.
info
(
'TF_GPU_THREAD_COUNT: %s'
,
...
...
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