class_docstr: ConvNet encoder for CelebA.
class_docstr_tok: ["ConvNet","encoder","for","CelebA","."]
code: def __init__(
      self,
      n_latent,
      layers=((256, 5, 2), (512, 5, 2), (1024, 3, 2), (2048, 3, 2)),
      padding_linear_layers=None,
      name="encoder",
  ):
      super(EncoderConv, self).__init__(name=name)
      self.n_latent = n_latent
      self.layers = layers
      self.padding_linear_layers = padding_linear_layers or []
  
imports: import numpy
  import sonnet
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new EncoderConv object from inherited base classes: snt with example: obj = EncoderConv(n_latent, layers, padding_linear_layers, name)