class_docstr: Class for registry object which acts as central source of truth
  for MMF
docstr: Register a fusion technique to registry with key 'name'
  
  Args:
      name: Key with which the fusion technique will be registered
  
  Usage::
  
      from mmf.common.registry import registry
      from torch import nn
  
      @registry.register_fusion("linear_sum")
      class LinearSum():
          ...
docstr_tok: ["Register","a","fusion","technique","to","registry","with","key","'name'","Args",":","name",":","Key","with","which","the","fusion","technique","will","be","registered","Usage",":",":","from","mmf.common.registry","import","registry","from","torch","import","nn","@","registry.register_fusion","(","``","linear_sum","''",")","class","LinearSum","(",")",":","..."]
code: def register_fusion(cls, name):
      r"""Register a fusion technique to registry with key 'name'
  
      Args:
          name: Key with which the fusion technique will be registered
  
      Usage::
  
          from mmf.common.registry import registry
          from torch import nn
  
          @registry.register_fusion("linear_sum")
          class LinearSum():
              ...
      """
  
      def wrap(func):
          from torch import nn
  
          assert issubclass(
              func, nn.Module
          ), "All Fusion must inherit torch.nn.Module class"
          cls.mapping["fusion_name_mapping"][name] = func
          return func
  
      return wrap
  
imports: from mmf.utils.env import setup_imports
label_desc: Use image node_id 8 for calling the Registry obj's underlying member method code with example usage: obj.register_fusion(cls, name) and returns: wrap, func