fix py infer

This commit is contained in:
littletomatodonkey 2020-09-15 14:23:41 +00:00
parent a7e915bf7b
commit f78678dd66
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ def create_predictor(args, mode):
config.disable_gpu()
config.set_cpu_math_library_num_threads(6)
if args.enable_mkldnn:
config.set_mkldnn_cache_capacity(10)
config.enable_mkldnn()
#config.enable_memory_optim()