class_docstr: Positional encoding with noise level conditioning
class_docstr_tok: ["Positional","encoding","with","noise","level","conditioning"]
code: def __init__(self, n_channels, max_len=10000):
      super().__init__()
      self.n_channels = n_channels
      self.max_len = max_len
      self.C = 5000
      self.pe = torch.zeros(0, 0)
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch.nn.utils import weight_norm
label_desc: Use image node_id 1 to create a new PositionalEncoding object from inherited base classes: nn with example: obj = PositionalEncoding(n_channels, max_len)