class_docstr: Base class for speaker models.
class_docstr_tok: ["Base","class","for","speaker","models","."]
code: def __init__(self, config, name=None):
      super().__init__(name=name)
      self.config = config
  
      self.netconf = self.config["model"]["net"]["structure"]
      self.taskconf = self.config["data"]["task"]
      self.audioconf = self.taskconf["audio"]
  
      self.attention = self.netconf["attention"]
      frame_per_sec = 1 / self.taskconf["audio"]["winstep"]
      self.input_len = (
          self.taskconf["audio"]["clip_size"] * frame_per_sec
      )
      self.input_type = (
          "samples" if self.taskconf["suffix"] == ".wav" else "features"
      )
      self.input_channels = (
          3 if self.taskconf["audio"]["add_delta_deltas"] else 1
      )
  
      # l2
      self._extra_train_ops = []
  
      # internal parameters
      self.feature_params = None
      self.mean = None
      self.std = None
      self.train = None
  
imports: import math
  from absl import logging
  import delta.compat
  import tensorflow.keras.layers
  from delta import utils
  from delta.layers import common_layers
  from delta.models.base_model import RawModel
  from delta.utils.register import registers
  from delta.utils.loss.loss_utils import arcface_loss
  from delta.utils.hparam import HParams
label_desc: Use image node_id 1 to create a new SpeakerBaseRawModel object from inherited base classes: RawModel with example: obj = SpeakerBaseRawModel(config, name)