class_docstr: Combines decoder_embedding with the decoder component
class_docstr_tok: ["Combines","decoder_embedding","with","the","decoder","component"]
code: def __init__(self, decoder_embedding, decoder, rpe, device):
      super(DecEmb, self).__init__()
  
      self.decoder_embedding = decoder_embedding
      self.decoder = decoder
      self.device = device
      self.rpe = rpe
  
      # properties needed for export
      self.training = False
  
imports: import random
  from typing import Dict, List, Optional
  import torch
  import torch.nn.functional
  from nemo.collections.nlp.modules.common.megatron.utils import build_position_ids
  from nemo.core.classes.exportable import Exportable
  from nemo.core.neural_types import ChannelType, EncodedRepresentation, MaskType, NeuralType
label_desc: Use image node_id 1 to create a new DecEmb object from inherited base classes: torch.nn, Exportable with example: obj = DecEmb(decoder_embedding, decoder, rpe, device)