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
b115cb44
Commit
b115cb44
authored
Jun 23, 2020
by
dyning
Browse files
use enable_memory_optim for cpu and gpu, add paddlehelp QRcode
parent
2401626a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
doc/paddlehelp.jpg
doc/paddlehelp.jpg
+0
-0
tools/infer/utility.py
tools/infer/utility.py
+1
-1
No files found.
doc/paddlehelp.jpg
0 → 100644
View file @
b115cb44
39.5 KB
tools/infer/utility.py
View file @
b115cb44
...
@@ -88,10 +88,10 @@ def create_predictor(args, mode):
...
@@ -88,10 +88,10 @@ def create_predictor(args, mode):
if
args
.
use_gpu
:
if
args
.
use_gpu
:
config
.
enable_use_gpu
(
args
.
gpu_mem
,
0
)
config
.
enable_use_gpu
(
args
.
gpu_mem
,
0
)
config
.
enable_memory_optim
()
else
:
else
:
config
.
disable_gpu
()
config
.
disable_gpu
()
config
.
enable_memory_optim
()
config
.
disable_glog_info
()
config
.
disable_glog_info
()
# use zero copy
# use zero copy
...
...
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