class_docstr: Base `encoder` class. Every new `encoder` model must inherit this.
  
  It defines common `encoder` specific functions.
class_docstr_tok: ["Base","`","encoder","`","class",".","Every","new","`","encoder","`","model","must","inherit","this",".","It","defines","common","`","encoder","`","specific","functions","."]
code: def inference(self, x, l2_norm=True):
      return self.forward(x, l2_norm)
  
file_path: TTS/TTS/encoder/models/base_encoder.py
imports: import numpy
  import torch
  import torchaudio
  from coqpit import Coqpit
  from torch import nn
  from TTS.encoder.losses import AngleProtoLoss, GE2ELoss, SoftmaxAngleProtoLoss
  from TTS.utils.generic_utils import set_init_dict
  from TTS.utils.io import load_fsspec
label_desc: Use image node_id 3 for calling the BaseEncoder obj's underlying member method code with example usage: obj.inference(x, l2_norm) and returns: self