class_docstr: Maps MNIST digits to a triplet (z_mean, z_log_var, z).
class_docstr_tok: ["Maps","MNIST","digits","to","a","triplet","(","z_mean",",","z_log_var",",","z",")","."]
code: def __init__(
      self, latent_dim=32, intermediate_dim=64, name="encoder", **kwargs
  ):
      super().__init__(name=name, **kwargs)
      self.dense_proj = layers.Dense(
          intermediate_dim, activation="relu"
      )
      self.dense_mean = layers.Dense(latent_dim)
      self.dense_log_var = layers.Dense(latent_dim)
      self.sampling = Sampling()
  
imports: import numpy
  import keras
  from keras import ops
  from keras import layers
label_desc: Use image node_id 1 to create a new Encoder object from inherited base classes: layers with example: obj = Encoder(latent_dim, intermediate_dim, name)