Browse Source

Merge pull request #1133 from will-jl944/bug_fix

[cherry-pick]glog does not need to be ebabled explictly
will-jl944 4 years ago
parent
commit
f9ad83baa0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      paddlex/deploy.py

+ 1 - 3
paddlex/deploy.py

@@ -116,9 +116,7 @@ class Predictor(object):
                     )
                     pass
 
-        if use_glog:
-            config.enable_glog_info()
-        else:
+        if not use_glog:
             config.disable_glog_info()
         if memory_optimize:
             config.enable_memory_optim()