class_docstr: Intermediate U-Net style layer for motion compensation.
  
  Args:
      child: The motion compensation module executes a U-Net style
          convolution structure with an input convolution followed by a child
          ``_MotionCompensationLayer`` followed by an output convolution. If
          the layer is at the bottom of the 'U', then a ``None`` is input for
          ``child``.
      in_channels: Number of input channels for convolutions.
      out_channels: Number of outpout channels for convolutions.
class_docstr_tok: ["Intermediate","U-Net","style","layer","for","motion","compensation",".","Args",":","child",":","The","motion","compensation","module","executes","a","U-Net","style","convolution","structure","with","an","input","convolution","followed","by","a","child","``","_MotionCompensationLayer","``","followed","by","an","output","convolution",".","If","the","layer","is","at","the","bottom","of","the","'","U","'",",","then","a","``","None","``","is","input","for","``","child","``",".","in_channels",":","Number","of","input","channels","for","convolutions",".","out_channels",":","Number","of","outpout","channels","for","convolutions","."]
code: def __init__(
      self,
      child: Optional[nn.Module] = None,
      in_channels: int = 64,
      out_channels: int = 64,
  ):
      super().__init__()
      self.child = child
      self.input_block = _ResidualBlock(
          in_channels=in_channels, out_channels=out_channels
      )
      self.output_block = _ResidualBlock(
          in_channels=in_channels, out_channels=out_channels
      )
  
imports: from typing import Any, List, NamedTuple, Optional, Sequence, Tuple
  import torch
  import torch.nn.functional
  from compressai.entropy_models import EntropyBottleneck
  from torch import Tensor, nn
  import neuralcompression.functional
  from neuralcompression.layers import SimplifiedGDN, SimplifiedInverseGDN
label_desc: Use image node_id 1 to create a new _MotionCompensationLayer object from inherited base classes: nn with example: obj = _MotionCompensationLayer(child, in_channels, out_channels)