class_docstr: Allows access to output of intermediate layers of a model
class_docstr_tok: ["Allows","access","to","output","of","intermediate","layers","of","a","model"]
docstr: Register tensor for later use.
docstr_tok: ["Register","tensor","for","later","use","."]
code: def register_accessible_tensor(self, name, tensor):
      """
      Register tensor for later use.
      """
      if self.access_cfg.get("convert_to_cpu", False):
          tensor = tensor.cpu()
  
      if self.access_cfg.get("detach", False):
          tensor = tensor.detach()
  
      if not hasattr(self, "_registry"):
          self._registry = {}
  
      if name not in self._registry:
          self._registry[name] = []
  
      self._registry[name].append(tensor)
  
file_path: NeMo/nemo/core/classes/mixins/access_mixins.py
imports: from abc import ABC
  from typing import Optional
  import torch
  from omegaconf import DictConfig
label_desc: Use image node_id 2 for calling the AccessMixin obj's underlying member method code with example usage: obj.register_accessible_tensor(name, tensor) without return types