I was able to move past this issue by removing the # type: ignore[] comments, but am immediately presented with another error in compiling pytorch code:
torch.jit.frontend.NotSupportedError: keyword-arg expansion is not supported:
  File "/shared/workspaces/rwesterman/miniconda3/envs/espnet/lib/python3.7/site-packages/torch/nn/modules/normalization.py", line 175
    def extra_repr(self) -> str:
        return '{normalized_shape}, eps={eps}, ' \
            'elementwise_affine={elementwise_affine}'.format(**self.__dict__)
                                                               ~~~~~~~~~~~~~ <--- HERE
'__torch__.torch.nn.modules.normalization.LayerNorm' is being compiled since it was called from 'LayerNorm.forward'
  File "/shared/workspaces/rwesterman/rev-espnet/espnet/nets/pytorch_backend/transformer/layer_norm.py", line 37
        """
        if self.dim == -1:
            return super(torch.nn.LayerNorm, self).forward(x)
                         ~~~~~~~~~~~~~~~~~~ <--- HERE
        return super(torch.nn.LayerNorm, self).forward(x.transpose(1, -1)).transpose(1, -1)