mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
pre-commit
This commit is contained in:
parent
0fd13fa410
commit
c8cc0fb4b7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user