class_docstr: MLP encoder for MNIST.
class_docstr_tok: ["MLP","encoder","for","MNIST","."]
code: def __init__(self, n_latent=64, layers=(1024,) * 3, name="encoder"):
      super(EncoderMNIST, self).__init__(name=name)
      self.n_latent = n_latent
      self.layers = layers
  
imports: import numpy
  import sonnet
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new EncoderMNIST object from inherited base classes: snt with example: obj = EncoderMNIST(n_latent, layers, name)