class_docstr: Wrap the model function for dependency injection with gin.
docstr: Get conditioning by preprocessing then encoding.
docstr_tok: ["Get","conditioning","by","preprocessing","then","encoding","."]
code: def encode(self, features, training=True):
      """Get conditioning by preprocessing then encoding."""
      if self.preprocessor is not None:
          features.update(
              self.preprocessor(features, training=training)
          )
      if self.encoder is not None:
          features.update(self.encoder(features))
      return features
  
file_path: ddsp/ddsp/training/models/autoencoder.py
imports: import ddsp
  from ddsp.training.models.model import Model
label_desc: Use image node_id 2 for calling the Autoencoder obj's underlying member method code with example usage: obj.encode(features, training) and returns: features