!42921 告警清理0926

Merge pull request !42921 from gaoshuanglong/clean_code_0926
This commit is contained in:
i-robot 2022-09-28 01:56:48 +00:00 committed by Gitee
commit dde9c49e3e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 45 additions and 41 deletions

View File

@ -14,6 +14,7 @@
# ============================================================================
"""image"""
from __future__ import absolute_import
from __future__ import division
import numbers
import numpy as np

View File

@ -14,6 +14,7 @@
# ============================================================================
"""normalization"""
from __future__ import absolute_import
from __future__ import division
import itertools
import numbers

View File

@ -15,48 +15,47 @@
"""Define the grad rules of math related operations."""
from mindspore.common import dtype as mstype
from mindspore.ops.operations.math_ops import Trace, Bernoulli, Renorm
from mindspore.ops._utils.utils import is_shape_unknown
from mindspore import nn
import mindspore.numpy as mnp
import numpy as np
from ...nn import LGamma
from .. import functional as F
from .. import operations as P
from ..operations.math_ops import Real, Imag, Complex, Angle
from ..operations.math_ops import ComplexAbs
from ..operations.math_ops import Sinc
from ..functional import broadcast_gradient_args
from .._grad.grad_base import bprop_getters, create_tensor_by_element, dyn_rank
from .._grad.grad_math_ops import binop_grad_common
from ..composite.multitype_ops.zeros_like_impl import zeros_like
from ..operations import _grad_ops as G
from ..operations.math_ops import Igamma, Igammac
from ..primitive import constexpr
from ..operations.math_ops import BesselI0
from ..operations.math_ops import BesselI1
from ..operations.math_ops import BesselJ0
from ..operations.math_ops import BesselJ1
from ..operations.math_ops import BesselK0
from ..operations.math_ops import BesselK1
from ..operations.math_ops import BesselK0e
from ..operations.math_ops import BesselK1e
from ..operations.math_ops import BesselY0
from ..operations.math_ops import BesselY1
from ..operations.math_ops import NextAfter
from ..operations.math_ops import Hypot
from ..operations.math_ops import ReduceStd
from ..operations.math_ops import LuUnpack
from ..operations.math_ops import MatrixExp
from ..operations.math_ops import MatrixSolve
from ..operations.math_ops import Median
from ..operations.math_ops import Betainc
from ..operations.math_ops import CholeskySolve
from ..operations.math_ops import AddV2
from ..operations.math_ops import TridiagonalMatMul
from ..operations.math_ops import Logit
from .._utils.utils import is_shape_unknown
import mindspore.numpy as mnp
from mindspore.common import dtype as mstype
from mindspore import nn
from mindspore.nn import LGamma
from mindspore.ops import functional as F
from mindspore.ops.functional import broadcast_gradient_args
from mindspore.ops import operations as P
from mindspore.ops.operations.math_ops import Trace, Bernoulli, Renorm
from mindspore.ops.operations.math_ops import Real, Imag, Complex, Angle
from mindspore.ops.operations.math_ops import ComplexAbs
from mindspore.ops.operations.math_ops import Sinc
from mindspore.ops.operations import _grad_ops as G
from mindspore.ops.operations.math_ops import Igamma, Igammac
from mindspore.ops.operations.math_ops import BesselI0
from mindspore.ops.operations.math_ops import BesselI1
from mindspore.ops.operations.math_ops import BesselJ0
from mindspore.ops.operations.math_ops import BesselJ1
from mindspore.ops.operations.math_ops import BesselK0
from mindspore.ops.operations.math_ops import BesselK1
from mindspore.ops.operations.math_ops import BesselK0e
from mindspore.ops.operations.math_ops import BesselK1e
from mindspore.ops.operations.math_ops import BesselY0
from mindspore.ops.operations.math_ops import BesselY1
from mindspore.ops.operations.math_ops import NextAfter
from mindspore.ops.operations.math_ops import Hypot
from mindspore.ops.operations.math_ops import ReduceStd
from mindspore.ops.operations.math_ops import LuUnpack
from mindspore.ops.operations.math_ops import MatrixExp
from mindspore.ops.operations.math_ops import MatrixSolve
from mindspore.ops.operations.math_ops import Median
from mindspore.ops.operations.math_ops import Betainc
from mindspore.ops.operations.math_ops import CholeskySolve
from mindspore.ops.operations.math_ops import AddV2
from mindspore.ops.operations.math_ops import TridiagonalMatMul
from mindspore.ops.operations.math_ops import Logit
from mindspore.ops.composite.multitype_ops.zeros_like_impl import zeros_like
from mindspore.ops.primitive import constexpr
from mindspore.ops._utils.utils import is_shape_unknown
from mindspore.ops._grad.grad_base import bprop_getters, create_tensor_by_element, dyn_rank
from mindspore.ops._grad.grad_math_ops import binop_grad_common
transpose = P.Transpose()

View File

@ -14,6 +14,7 @@
# ============================================================================
"""Operators for gradients."""
from __future__ import division
from mindspore._checkparam import _check_3d_int_or_tuple
from mindspore.ops.operations.nn_ops import _check_positive_int_or_tuple

View File

@ -16,6 +16,8 @@
"""Operators for math."""
from __future__ import absolute_import
from __future__ import division
import numpy as np
from mindspore import context
from mindspore.ops import signature as sig