class_docstr: Common super class for decoder networks with output projection layers.
class_docstr_tok: ["Common","super","class","for","decoder","networks","with","output","projection","layers","."]
code: def __init__(self, out_vocab_size, out_embed_dim=512):
      super().__init__()
      self.linear_projection = nn.Linear(out_embed_dim, out_vocab_size)
      self.reset_parameters()
      log_class_usage(__class__)
  
imports: from typing import Dict, List, Optional, Tuple
  import torch
  import torch.nn.functional
  from fairseq import utils
  from pytext.config import ConfigBase
  from pytext.models.seq_models.base import PyTextSeq2SeqModule
  from pytext.utils.usage import log_class_usage
  from torch import nn
  from .attention import DotAttention
  from .base import PlaceholderIdentity, PyTextIncrementalDecoderComponent
label_desc: Use image node_id 1 to create a new DecoderWithLinearOutputProjection object from inherited base classes: PyTextSeq2SeqModule with example: obj = DecoderWithLinearOutputProjection(out_vocab_size, out_embed_dim)