class_docstr: Modulated convolution.
  For details refer to [1]
  [1] Karras et. al. - Analyzing and Improving the Image Quality of StyleGAN (https://arxiv.org/abs/1912.04958)
class_docstr_tok: ["Modulated","convolution",".","For","details","refer","to","[","1","]","[","1","]","Karras","et",".","al",".","-","Analyzing","and","Improving","the","Image","Quality","of","StyleGAN","(","https",":","\/\/arxiv.org\/abs\/1912.04958",")"]
code: def _get_same_padding(self, size, kernel, dilation, stride):
      return ((size - 1) * (stride - 1) + dilation * (kernel - 1)) // 2
  
imports: import math
  from functools import partial
  from math import log2
  from typing import List
  import torch
  import torch.nn.functional
  from einops import rearrange
  from kornia.filters import filter2d
  from nemo.collections.tts.parts.utils.helpers import mask_sequence_tensor
label_desc: Use image node_id 2 for calling the Conv2DModulated obj's underlying member method code with example usage: obj._get_same_padding(size, kernel, dilation, stride) and returns: unknown