class_docstr: This class jointly handles the hidden transforms and hidden loss transforms.
  It helps in validating, and applying the transforms.
class_docstr_tok: ["This","class","jointly","handles","the","hidden","transforms","and","hidden","loss","transforms",".","It","helps","in","validating",",","and","applying","the","transforms","."]
docstr: Get the hidden outputs from all the hidden transforms
docstr_tok: ["Get","the","hidden","outputs","from","all","the","hidden","transforms"]
code: def hidden_outputs(self):
      """Get the hidden outputs from all the hidden transforms"""
      all_output_names = [
          ht.output_names for ht in self.hidden_transforms
      ] + [["hiddens", "hiddens_mask"]]
      output_names = set().union(*all_output_names)
  
      return list(output_names)
  
imports: import functools
  import itertools
  from typing import List
  import torch
  from omegaconf.dictconfig import DictConfig
  from omegaconf.omegaconf import OmegaConf
  from nemo.collections.nlp.modules.common.megatron.hiddens.megatron_hidden_loss import MegatronBaseHiddenLoss
  from nemo.collections.nlp.modules.common.megatron.hiddens.megatron_hidden_transform import MegatronBaseHiddenTransform
  from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults
  from nemo.utils import logging
  from nemo.utils.model_utils import import_class_by_path
label_desc: Use image node_id 2 for calling the MegatronHiddensModule obj's underlying member method code with example usage: obj.hidden_outputs() and returns: list