class_docstr: 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
  from typing import Callable, Dict, List, Optional, Tuple
  import torch.nn.functional
  from torch import nn, Tensor
  from ..ops.misc import Conv2dNormActivation
  from ..utils import _log_api_usage_once
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)