class_docstr: Wraps around the Huggingface transformers implementation repository for easy use within NeMo.
class_docstr_tok: ["Wraps","around","the","Huggingface","transformers","implementation","repository","for","easy","use","within","NeMo","."]
code: def forward(self, input_ids, attention_mask, token_type_ids=None):
      # distilBert does not use token_type_ids as the most of the other Bert models
      res = super().forward(
          input_ids=input_ids, attention_mask=attention_mask
      )[0]
      return res
  
imports: from transformers import DistilBertModel
  from nemo.collections.nlp.modules.common.bert_module import BertModule
  from nemo.core.classes import typecheck
label_desc: Use image node_id 1 for calling the DistilBertEncoder obj's underlying member method code with example usage: obj.forward(input_ids, attention_mask, token_type_ids) and returns: res