From 2591076cabef2d0cbe3fa17fd737f44c88ecb0c9 Mon Sep 17 00:00:00 2001 From: Jiangxinz Date: Tue, 13 Jul 2021 14:17:43 +0800 Subject: [PATCH] fix undef var (#34048) * fix undef var * fix undef var --- .../fluid/contrib/slim/quantization/cal_kl_threshold.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/paddle/fluid/contrib/slim/quantization/cal_kl_threshold.py b/python/paddle/fluid/contrib/slim/quantization/cal_kl_threshold.py index a35b8bb0c2..390859236d 100644 --- a/python/paddle/fluid/contrib/slim/quantization/cal_kl_threshold.py +++ b/python/paddle/fluid/contrib/slim/quantization/cal_kl_threshold.py @@ -12,8 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +import logging import math import numpy as np +from ....log_helper import get_logger + +_logger = get_logger( + __name__, logging.INFO, fmt='%(asctime)s-%(levelname)s: %(message)s') __all__ = ['cal_kl_threshold'] -- GitLab