From 149839952b5a5d698f5e1ddfee9e3902960459dd Mon Sep 17 00:00:00 2001 From: buxue Date: Sat, 11 Apr 2020 17:25:35 +0800 Subject: [PATCH] normalize log in optimizer in python --- mindspore/nn/optim/optimizer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mindspore/nn/optim/optimizer.py b/mindspore/nn/optim/optimizer.py index cd0ed93a101..e2edf7bfb4f 100755 --- a/mindspore/nn/optim/optimizer.py +++ b/mindspore/nn/optim/optimizer.py @@ -14,7 +14,6 @@ # ============================================================================ """optimizer""" from typing import Iterable -import logging import numpy as np @@ -24,8 +23,8 @@ from mindspore.common.parameter import Parameter, ParameterTuple from mindspore._checkparam import ParamValidator as validator from mindspore._checkparam import Rel from mindspore.common.tensor import Tensor +from mindspore import log as logger -logger = logging.getLogger('Optimizer') __all__ = ['Optimizer']