class_docstr: MLP (Full layers) generator.
class_docstr_tok: ["MLP","(","Full","layers",")","generator","."]
code: def _build(self, z):
      x = z
      for l in self.layers:
          x = tf.nn.relu(snt.Linear(l)(x))
      x = snt.Linear(2 * self.n_latent)(x)
      dz = x[:, : self.n_latent]
      gates = tf.nn.sigmoid(x[:, self.n_latent :])
      z_prime = (1 - gates) * z + gates * dz
      return z_prime
  
imports: import numpy
  import sonnet
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the GFull obj's underlying member method code with example usage: obj._build(z) and returns: z_prime