From a6f7563cde924140e7174174cab8d4a91f37118d Mon Sep 17 00:00:00 2001 From: will-jl944 Date: Mon, 13 Sep 2021 19:09:49 +0800 Subject: [PATCH] glog does not need to be enabled explictly --- paddlex/deploy.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddlex/deploy.py b/paddlex/deploy.py index 1bcf5f4b4a..939f2d46df 100644 --- a/paddlex/deploy.py +++ b/paddlex/deploy.py @@ -116,9 +116,7 @@ def create_predictor(self, ) pass - if use_glog: - config.enable_glog_info() - else: + if not use_glog: config.disable_glog_info() if memory_optimize: config.enable_memory_optim()