class_docstr: Base class for encoder-decoder models used for self-supervised encoder pre-training
class_docstr_tok: ["Base","class","for","encoder-decoder","models","used","for","self-supervised","encoder","pre-training"]
code: def input_types(self) -> Optional[Dict[str, NeuralType]]:
      if hasattr(self.preprocessor, "_sample_rate"):
          input_signal_eltype = AudioSignal(
              freq=self.preprocessor._sample_rate
          )
      else:
          input_signal_eltype = AudioSignal()
      return {
          "input_signal": NeuralType(
              ("B", "T"), input_signal_eltype, optional=True
          ),
          "input_signal_length": NeuralType(
              tuple("B"), LengthsType(), optional=True
          ),
          "processed_signal": NeuralType(
              ("B", "D", "T"), SpectrogramType(), optional=True
          ),
          "processed_signal_length": NeuralType(
              tuple("B"), LengthsType(), optional=True
          ),
          "targets": NeuralType(
              ("B", "T"), LabelsType(), optional=True
          ),
          "target_lengths": NeuralType(
              tuple("B"), LengthsType(), optional=True
          ),
      }
  
imports: from math import ceil
  from typing import Dict, List, Optional, Union
  import torch
  import torch.nn
  from omegaconf import DictConfig
  from pytorch_lightning import Trainer
  from nemo.collections.asr.data import audio_to_text_dataset
  from nemo.collections.asr.data.audio_to_text_dali import DALIOutputs
  from nemo.collections.asr.data.audio_to_text_lhotse import LhotseSpeechToTextBpeDataset
  from nemo.collections.asr.parts.mixins import ASRModuleMixin
  from nemo.collections.asr.parts.preprocessing.perturb import process_augmentations
  from nemo.collections.common.data.lhotse import get_lhotse_dataloader_from_config
  from nemo.collections.common.parts.preprocessing.parsers import make_parser
  from nemo.core.classes import ModelPT
  from nemo.core.classes.common import PretrainedModelInfo, typecheck
  from nemo.core.classes.mixins import AccessMixin, set_access_cfg
  from nemo.core.neural_types import AcousticEncodedRepresentation, AudioSignal, LabelsType, LengthsType, NeuralType, SpectrogramType
  from nemo.utils import logging
label_desc: Use image node_id 6 for calling the SpeechEncDecSelfSupervisedModel obj's underlying member method code with example usage: obj.input_types() and returns: dict