class_docstr: HiFiGAN multi-period discriminator module.
docstr: Initialize HiFiGANMultiPeriodDiscriminator module.
  
  Args:
      periods (List[int]): List of periods.
      discriminator_params (Dict[str, Any]): Parameters for hifi-gan period
          discriminator module. The period parameter will be overwritten.
docstr_tok: ["Initialize","HiFiGANMultiPeriodDiscriminator","module",".","Args",":","periods","(","List","[","int","]",")",":","List","of","periods",".","discriminator_params","(","Dict","[","str",",","Any","]",")",":","Parameters","for","hifi-gan","period","discriminator","module",".","The","period","parameter","will","be","overwritten","."]
code: def __init__(
      self,
      periods: List[int] = [2, 3, 5, 7, 11],
      discriminator_params: Dict[str, Any] = {
          "in_channels": 1,
          "out_channels": 1,
          "kernel_sizes": [5, 3],
          "channels": 32,
          "downsample_scales": [3, 3, 3, 3, 1],
          "max_downsample_channels": 1024,
          "bias": True,
          "nonlinear_activation": "LeakyReLU",
          "nonlinear_activation_params": {"negative_slope": 0.1},
          "use_weight_norm": True,
          "use_spectral_norm": False,
      },
  ):
      """Initialize HiFiGANMultiPeriodDiscriminator module.
  
      Args:
          periods (List[int]): List of periods.
          discriminator_params (Dict[str, Any]): Parameters for hifi-gan period
              discriminator module. The period parameter will be overwritten.
  
      """
      super().__init__()
      self.discriminators = torch.nn.ModuleList()
      for period in periods:
          params = copy.deepcopy(discriminator_params)
          params["period"] = period
          self.discriminators += [HiFiGANPeriodDiscriminator(**params)]
  
imports: import copy
  import logging
  from typing import Any, Dict, List, Optional
  import numpy
  import torch
  import torch.nn.functional
  from espnet2.gan_tts.hifigan.residual_block import ResidualBlock
label_desc: Use image node_id 1 to create a new HiFiGANMultiPeriodDiscriminator object from inherited base classes: torch.nn with example: obj = HiFiGANMultiPeriodDiscriminator(periods, discriminator_params)