class_docstr: This module is used in RetinaNet to generate extra layers, P6 and P7.
class_docstr_tok: ["This","module","is","used","in","RetinaNet","to","generate","extra","layers",",","P6","and","P7","."]
code: def __init__(self, in_channels: int, out_channels: int):
      super().__init__()
      self.p6 = nn.Conv2d(in_channels, out_channels, 3, 2, 1)
      self.p7 = nn.Conv2d(out_channels, out_channels, 3, 2, 1)
      for module in [self.p6, self.p7]:
          nn.init.kaiming_uniform_(module.weight, a=1)
          nn.init.constant_(module.bias, 0)
      self.use_P5 = in_channels == out_channels
  
imports: from collections import OrderedDict
  import torch.nn
  import torch
  from torch import Tensor
  import torch.nn.functional
  from torch.jit.annotations import Tuple, List, Dict
label_desc: Use image node_id 1 to create a new LastLevelP6P7 object from inherited base classes: ExtraFPNBlock with example: obj = LastLevelP6P7(in_channels, out_channels)