class_docstr: WaveNet with global conditioning.
class_docstr_tok: ["WaveNet","with","global","conditioning","."]
code: def _get_receptive_field_size(
      layers: int,
      stacks: int,
      kernel_size: int,
      base_dilation: int,
  ) -> int:
      assert layers % stacks == 0
      layers_per_cycle = layers // stacks
      dilations = [
          base_dilation ** (i % layers_per_cycle) for i in range(layers)
      ]
      return (kernel_size - 1) * sum(dilations) + 1
  
file_path: espnet/espnet2/gan_tts/wavenet/wavenet.py
imports: import logging
  import math
  from typing import Optional
  import torch
  from espnet2.gan_tts.wavenet.residual_block import Conv1d1x1, ResidualBlock
label_desc: Use image node_id 5 for calling the WaveNet obj's underlying member method code with example usage: obj._get_receptive_field_size(layers, stacks, kernel_size, base_dilation) and returns: unknown