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 loss inputs from all the loss transforms
docstr_tok: ["Get","the","loss","inputs","from","all","the","loss","transforms"]
code: def loss_inputs(self):
      """Get the loss inputs from all the loss transforms"""
      loss_inputs = set().union(
          *[lt.input_names for lt in self.hidden_loss_transforms]
      )
      return list(loss_inputs)
  
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 3 for calling the MegatronHiddensModule obj's underlying member method code with example usage: obj.loss_inputs() and returns: list