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 a35b8bb0c2af86cf884d47c2793c1e3560faf717..390859236d91ce0a07fdca121e65118ba1196ed5 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']