class_docstr: Class for using HuggingFace encoders in NeMo NLP.
class_docstr_tok: ["Class","for","using","HuggingFace","encoders","in","NeMo","NLP","."]
code: def forward(self, input_ids, encoder_mask):
      encoder_hidden_states = self._encoder.forward(
          input_ids=input_ids, attention_mask=encoder_mask
      )[0]
      return encoder_hidden_states
  
file_path: NeMo/nemo/collections/nlp/modules/common/huggingface/huggingface_encoder.py
imports: from typing import Optional
  from hydra.utils import instantiate
  from transformers import AutoConfig, AutoModel
  from nemo.collections.nlp.modules.common.encoder_module import EncoderModule
  from nemo.collections.nlp.modules.common.huggingface.huggingface_utils import get_huggingface_pretrained_lm_models_list
  from nemo.core.classes.common import typecheck
  from nemo.utils import logging
label_desc: Use image node_id 2 for calling the HuggingFaceEncoderModule obj's underlying member method code with example usage: obj.forward(input_ids, encoder_mask) and returns: encoder_hidden_states