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
wangsen
paddle_dbnet
Commits
c8cc0fb4
Commit
c8cc0fb4
authored
May 26, 2021
by
LDOUBLEV
Browse files
pre-commit
parent
0fd13fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/infer/utility.py
tools/infer/utility.py
+2
-2
No files found.
tools/infer/utility.py
View file @
c8cc0fb4
...
...
@@ -224,8 +224,8 @@ def create_predictor(args, mode, logger):
if
hasattr
(
args
,
"cpu_threads"
):
config
.
set_cpu_math_library_num_threads
(
args
.
cpu_threads
)
else
:
config
.
set_cpu_math_library_num_
threads
(
10
)
# default cpu
threads
as
10
# default cpu
threads
as 10
config
.
set_cpu_math_library_num_
threads
(
10
)
if
args
.
enable_mkldnn
:
# cache 10 different shapes for mkldnn to avoid memory leak
config
.
set_mkldnn_cache_capacity
(
10
)
...
...
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