code: def __init__(
      self, name="weight", n_power_iterations=1, dim=0, eps=1e-12
  ):
      self.name = name
      self.dim = dim
      if n_power_iterations <= 0:
          raise ValueError(
              "Expected n_power_iterations to be positive, but "
              "got n_power_iterations={}".format(n_power_iterations)
          )
      self.n_power_iterations = n_power_iterations
      self.eps = eps
  
file_path: PaddleOCR/StyleText/arch/spectral_norm.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 1 to create a new SpectralNorm object from inherited base classes: object with example: obj = SpectralNorm(name, n_power_iterations, dim, eps)